mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 12:41:05 +00:00
ee5d5755a8
COND_NWAITERS_SHIFT. * pthread_cond_destroy.c: Use COND_NWAITERS_SHIFT instead of COND_CLOCK_BITS. * pthread_cond_init.c: Likewise. * pthread_cond_timedwait.c: Likewise. * pthread_cond_wait.c: Likewise. * pthread_condattr_getclock.c: Likewise. * pthread_condattr_setclock.c: Likewise. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
17 lines
586 B
Plaintext
17 lines
586 B
Plaintext
#include <stddef.h>
|
|
#include <sched.h>
|
|
#include <bits/pthreadtypes.h>
|
|
#include <internaltypes.h>
|
|
|
|
--
|
|
|
|
cond_lock offsetof (pthread_cond_t, __data.__lock)
|
|
cond_futex offsetof (pthread_cond_t, __data.__futex)
|
|
cond_nwaiters offsetof (pthread_cond_t, __data.__nwaiters)
|
|
total_seq offsetof (pthread_cond_t, __data.__total_seq)
|
|
wakeup_seq offsetof (pthread_cond_t, __data.__wakeup_seq)
|
|
woken_seq offsetof (pthread_cond_t, __data.__woken_seq)
|
|
dep_mutex offsetof (pthread_cond_t, __data.__mutex)
|
|
broadcast_seq offsetof (pthread_cond_t, __data.__broadcast_seq)
|
|
nwaiters_shift COND_NWAITERS_SHIFT
|