diff options
author | Egor Duda <deo@logos-m.ru> | 2001-11-15 11:10:38 +0000 |
---|---|---|
committer | Egor Duda <deo@logos-m.ru> | 2001-11-15 11:10:38 +0000 |
commit | f38ac9b70c69408b011797cf5b86579e60c5b7df (patch) | |
tree | caf67ea04476231ef37a8f5542089cd4796cfb87 /winsup/cygwin/include/pthread.h | |
parent | e2b3dc25804ce3688ac69a7249323e90ae82305e (diff) | |
download | newlib-f38ac9b70c69408b011797cf5b86579e60c5b7df.zip newlib-f38ac9b70c69408b011797cf5b86579e60c5b7df.tar.gz newlib-f38ac9b70c69408b011797cf5b86579e60c5b7df.tar.bz2 |
* include/pthread.h (PTHREAD_COND_INITIALIZER): Define.
* thread.cc (__pthread_cond_destroy): Add support for
PTHREAD_COND_INITIALIZER.
(__pthread_cond_init): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_dowait): Ditto.
(__pthread_mutex_init): Handle PTHREAD_MUTEX_INITIALIZER correctly,
don't return error when it's passed as parameter.
* winsup.h (check_null_invalid_struct): Call correct function.
Diffstat (limited to 'winsup/cygwin/include/pthread.h')
-rw-r--r-- | winsup/cygwin/include/pthread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h index 3c51cf1..102ba65 100644 --- a/winsup/cygwin/include/pthread.h +++ b/winsup/cygwin/include/pthread.h @@ -43,7 +43,8 @@ extern "C" #define PTHREAD_CANCEL_DEFERRED 0 #define PTHREAD_CANCEL_DISABLE 1 #define PTHREAD_CANCELED -#define PTHREAD_COND_INITIALIZER +/* this should be a value that can never be a valid address */ +#define PTHREAD_COND_INITIALIZER (void *)21 #define PTHREAD_CREATE_DETACHED 1 /* the default : joinable */ #define PTHREAD_CREATE_JOINABLE 0 |