summaryrefslogtreecommitdiff
path: root/src/glibext/objhole.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/objhole.h')
-rw-r--r--src/glibext/objhole.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/glibext/objhole.h b/src/glibext/objhole.h
index 184e599..ad28c63 100644
--- a/src/glibext/objhole.h
+++ b/src/glibext/objhole.h
@@ -68,4 +68,27 @@
+/**
+ * Choix du bit de verrou pour le champ "lock".
+ *
+ * Dans la structure exploitant le mot utilisé ici, ce verrou est généralement
+ * placé dans le bit de poids fort pour les objets qui l'utilisent.
+ */
+
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+
+# define HOLE_LOCK_BIT 31
+
+#elif __BYTE_ORDER == __BIG_ENDIAN
+
+# define HOLE_LOCK_BIT 0
+
+#else
+
+# error "Unknown byte order"
+
+#endif
+
+
+
#endif /* _GLIBEXT_OBJHOLE_H */