From 5ccbf4b6998788d90b317b2c27f93efc2eca1516 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 17 Mar 2001 01:14:58 +0000 Subject: * 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. --- winsup/cygwin/pthread.cc | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'winsup/cygwin/pthread.cc') 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) -- cgit v1.2.3