summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>2005-03-08 07:36:56 +0000
committerrpj <rpj>2005-03-08 07:36:56 +0000
commitd5c78e3656cbc7410f333bfa80e2929947e6d0e5 (patch)
tree9d47c7f9dc5022564a7c34ec1db8cca4e4d6d802 /pthread.h
parent6df0e45cf47b5eaee00f21a5862e8f0c5107a4e2 (diff)
compiler compatibility and bug fixes
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/pthread.h b/pthread.h
index 8a8139c..e668e60 100644
--- a/pthread.h
+++ b/pthread.h
@@ -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 1,2,0,0
-#define PTW32_VERSION_STRING "1, 2, 0, 0\0"
+#define PTW32_VERSION 1,3,0,0
+#define PTW32_VERSION_STRING "1, 3, 0, 0\0"
/* There are three implementations of cancel cleanup.
* Note that pthread.h is included in both application
@@ -677,9 +677,8 @@ enum {
struct pthread_once_t_
{
- volatile int done; /* indicates if user function executed */
- long started; /* First thread to increment this value */
- /* to zero executes the user function */
+ volatile int done; /* indicates if user function has been executed */
+ int started;
};