diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-17 01:14:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-17 01:14:58 +0000 |
commit | 5ccbf4b6998788d90b317b2c27f93efc2eca1516 (patch) | |
tree | 464959f9a7111b7931514d9129c292f5cb5a231d /winsup/cygwin/pthread.cc | |
parent | 8308bf58f71b692b85944f5ec8a58168779a142c (diff) | |
download | cygnal-5ccbf4b6998788d90b317b2c27f93efc2eca1516.tar.gz cygnal-5ccbf4b6998788d90b317b2c27f93efc2eca1516.tar.bz2 cygnal-5ccbf4b6998788d90b317b2c27f93efc2eca1516.zip |
* cygwin.din: Export the new functions.
* pthread.cc (pthread_cond_*): Add wrapper functions that call __pthread_cond*
functions.
* thread.cc (__pthread_cond_*): Implement the pthread_cond* functions.
* thread.h: Add new class entries and prototypes for __pthread_cond* functions.
* include/pthread.h: user land header prototypes for pthread_cond* functions
and related defines.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 82200e4a7..1cbec260b 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -171,6 +171,67 @@ pthread_mutex_destroy (pthread_mutex_t * mutex) return __pthread_mutex_destroy (mutex); } +/* Synchronisation */ + +int +pthread_cond_destroy(pthread_cond_t *cond) +{ + return __pthread_cond_destroy (cond); +} + +int +pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) +{ + return __pthread_cond_init (cond, attr); +} + +int +pthread_cond_signal(pthread_cond_t *cond) +{ + return __pthread_cond_signal (cond); +} + +int pthread_cond_broadcast(pthread_cond_t *cond) +{ + return __pthread_cond_broadcast (cond); +} + +int +pthread_cond_timedwait(pthread_cond_t *cond, + pthread_mutex_t *mutex, const struct timespec *abstime) +{ + return __pthread_cond_timedwait (cond, mutex, abstime); +} + +int +pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) +{ + return __pthread_cond_wait (cond, mutex); +} + +int +pthread_condattr_init(pthread_condattr_t *condattr) +{ + return __pthread_condattr_init (condattr); +} + +int +pthread_condattr_destroy(pthread_condattr_t *condattr) +{ + return __pthread_condattr_destroy (condattr); +} + +int +pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared) +{ + return __pthread_condattr_getpshared (attr, pshared); +} + +int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) +{ + return __pthread_condattr_setpshared (attr, pshared); +} + /* Semaphores */ int sem_init (sem_t * sem, int pshared, unsigned int value) |