diff options
author | rpj <rpj> | 2005-03-14 01:30:17 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-03-14 01:30:17 +0000 |
commit | edff26f320def7562009773ff8f258688d9860f6 (patch) | |
tree | f168e02fed0e44cac3128f136e2a60b62ea443a1 /pthread.h | |
parent | 9b477bedafd2450735b78cdedc7af5e090aa8934 (diff) |
''
Diffstat (limited to 'pthread.h')
-rw-r--r-- | pthread.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -37,8 +37,8 @@ * See the README file for an explanation of the pthreads-win32 version * numbering scheme and how the DLL is named etc. */ -#define PTW32_VERSION 2,0,0,0 -#define PTW32_VERSION_STRING "2, 0, 0, 0\0" +#define PTW32_VERSION 1,4,0,0 +#define PTW32_VERSION_STRING "1, 4, 0, 0\0" /* There are three implementations of cancel cleanup. * Note that pthread.h is included in both application @@ -673,14 +673,12 @@ enum { * ==================== * ==================== */ -#define PTHREAD_ONCE_INIT { 0, PTW32_FALSE, 0, 0} +#define PTHREAD_ONCE_INIT { 0, -1 } struct pthread_once_t_ { - int state; /* indicates if user function has been executed, or cancelled */ + volatile int done; /* indicates if user function has been executed or cancelled */ int started; - int eventUsers; - HANDLE event; }; |