From c156eacc8b9c6f33f89c7563f2821320be79c2e1 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 1 Jul 2001 14:35:49 +0000 Subject: 2001-07-01 Ross Johnson Contributed by - Alexander Terekhov. * condvar.c: Fixed lost signal bug reported by Timur Aydin (taydin@snet.net). [RPJ (me) didn't translate the original algorithm correctly.] * semaphore.c: Added sem_post_multiple; this is a useful routine, but it doesn't appear to be standard. For now it's not an exported function. --- pthread.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index a860cd1..8675c56 100644 --- a/pthread.h +++ b/pthread.h @@ -22,9 +22,6 @@ #if !defined( PTHREAD_H ) #define PTHREAD_H -#if !defined( PTW32_HEADER ) -#define PTW32_HEADER - #ifdef _UWIN # define HAVE_STRUCT_TIMESPEC 1 # define HAVE_SIGNAL_H 1 @@ -32,8 +29,6 @@ # pragma comment(lib, "pthread") #endif -#endif /* PTW32_HEADER */ - /* * ------------------------------------------------------------- * @@ -125,8 +120,7 @@ #include -#if ! defined(HAVE_STRUCT_TIMESPEC) && ! defined(PTW32_TIMESPEC) -#define PTW32_TIMESPEC +#ifndef HAVE_STRUCT_TIMESPEC struct timespec { long tv_sec; long tv_nsec; @@ -162,7 +156,7 @@ struct timespec { * In case ETIMEDOUT hasn't been defined above somehow. */ #ifndef ETIMEDOUT -#define ETIMEDOUT 10060 /* This is the value in winsock.h. */ +# define ETIMEDOUT 10060 /* This is the value in winsock.h. */ #endif /* @@ -173,7 +167,6 @@ struct timespec { # define ENOTSUP 48 #endif - #ifdef __cplusplus extern "C" { @@ -657,7 +650,7 @@ int pthread_attr_setstacksize (pthread_attr_t * attr, int pthread_attr_getschedparam (const pthread_attr_t *attr, struct sched_param *param); - + int pthread_attr_setschedparam (pthread_attr_t *attr, const struct sched_param *param); @@ -675,7 +668,7 @@ int pthread_attr_getinheritsched(pthread_attr_t * attr, int pthread_attr_setscope (pthread_attr_t *, int); - + int pthread_attr_getscope (const pthread_attr_t *, int *); -- cgit v1.2.3