[Glibc-bsd-commits] r4628 - trunk/glibc-ports/kfreebsd/fbtl

Petr Salinger ps-guest at alioth.debian.org
Mon Jul 8 12:47:48 UTC 2013


Author: ps-guest
Date: 2013-06-27 17:57:03 +0000 (Thu, 27 Jun 2013)
New Revision: 4628

Modified:
   trunk/glibc-ports/kfreebsd/fbtl/internaltypes.h
Log:
we need more bites for clockId


Modified: trunk/glibc-ports/kfreebsd/fbtl/internaltypes.h
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/internaltypes.h	2013-06-27 15:59:00 UTC (rev 4627)
+++ trunk/glibc-ports/kfreebsd/fbtl/internaltypes.h	2013-06-27 17:57:03 UTC (rev 4628)
@@ -78,10 +78,18 @@
    of bits for other purposes.  COND_CLOCK_BITS is the number
    of bits needed to represent the ID of the clock.  COND_NWAITERS_SHIFT
    is the number of bits reserved for other purposes like the clock.  */
-#define COND_CLOCK_BITS		1
-#define COND_NWAITERS_SHIFT	1
 
+/* Under FreeBSD:
+        #define CLOCK_REALTIME  0
+        #define CLOCK_MONOTONIC 4   
+  
+  we therefore need at least 3 bits
+ */ 
 
+#define COND_CLOCK_BITS		4
+#define COND_NWAITERS_SHIFT	(COND_CLOCK_BITS)
+
+
 /* Read-write lock variable attribute data structure.  */
 struct pthread_rwlockattr
 {




More information about the Glibc-bsd-commits mailing list