diff options
author | rpj <rpj> | 1998-07-30 15:33:13 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-30 15:33:13 +0000 |
commit | 46dc6c8f550e64ed07650b98ea437fdbb1de54c7 (patch) | |
tree | 8b524534506a5b6eb2071eea6218a57ff47a6198 /pthread.h | |
parent | 1d10646cae6e5bf0c6f96b43b7766096be16a9e6 (diff) |
Fri Jul 31 00:05:45 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* Makefile (SRCS): Create. Preliminary.
* windows.h: Create. Contains Win32 definitions for compile
testing. This is just a standin for the real one.
* pthread.h (SIG_UNBLOCK): Fix typo. Was SIG_BLOCK.
(windows.h): Add include. Required for CRITICAL_SECTION.
(pthread_cond_t): Move enum declaration outside of struct
definition.
(unistd.h): Add include - may be temporary.
* condvar.c (windows.h): Add include.
Diffstat (limited to 'pthread.h')
-rw-r--r-- | pthread.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -22,6 +22,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef _PTHREADS_H #define _PTHREADS_H +#include <windows.h> +#include <unistd.h> + #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ @@ -35,7 +38,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif /* SIG_BLOCK */ #ifndef SIG_UNBLOCK -#define SIG_BLOCK 1 +#define SIG_UNBLOCK 1 #endif /* SIG_UNBLOCK */ #ifndef SIG_SETMASK @@ -96,9 +99,9 @@ struct sched_param { int sched_priority; } -typedef struct { - enum { SIGNAL, BROADCAST, NUM_EVENTS }; +enum { SIGNAL, BROADCAST, NUM_EVENTS }; +typedef struct { /* Signal and broadcast event HANDLEs. */ HANDLE events[NUM_EVENTS]; |