diff options
author | deischen <deischen@FreeBSD.org> | 2004-02-03 05:50:07 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-02-03 05:50:07 +0000 |
commit | aea62cb1afb02fec29102c23f92b8fd307287e79 (patch) | |
tree | 506514107b075b200349dfdaa41f158cef909a12 /lib/libpthread/thread/thr_private.h | |
parent | 5be959edb75719c22c3fa0b8cf5071349caa5576 (diff) | |
download | FreeBSD-src-aea62cb1afb02fec29102c23f92b8fd307287e79.zip FreeBSD-src-aea62cb1afb02fec29102c23f92b8fd307287e79.tar.gz |
Provide a userland version of non-pshared semaphores and add cancellation
points to sem_wait() and sem_timedwait(). Also make sem_post signal-safe.
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 7948df8..191f9c1 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -408,18 +408,6 @@ struct pthread_spinlock { NULL, NULL, 0, 0 } /* - * Semaphore definitions. - */ -struct sem { -#define SEM_MAGIC ((u_int32_t) 0x09fa4012) - u_int32_t magic; - pthread_mutex_t lock; - pthread_cond_t gtzero; - u_int32_t count; - u_int32_t nwaiters; -}; - -/* * Cleanup definitions. */ struct pthread_cleanup { |