summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>2005-03-12 23:00:53 +0000
committerrpj <rpj>2005-03-12 23:00:53 +0000
commit47d030b0ab9adf502451ef1558eeca50e67063c0 (patch)
tree2754c946c36b276241e44208ad6d7f5c6cd45bce /pthread.h
parent4ec6a9e7044d8c853d1cd734facb21316f850106 (diff)
New design for pthread_once (with cancelability); ABI change
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/pthread.h b/pthread.h
index e668e60..193e20f 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,3,0,0
-#define PTW32_VERSION_STRING "1, 3, 0, 0\0"
+#define PTW32_VERSION 2,0,0,0
+#define PTW32_VERSION_STRING "2, 0, 0, 0\0"
/* There are three implementations of cancel cleanup.
* Note that pthread.h is included in both application
@@ -673,12 +673,14 @@ enum {
* ====================
* ====================
*/
-#define PTHREAD_ONCE_INIT { PTW32_FALSE, -1 }
+#define PTHREAD_ONCE_INIT { 0, PTW32_FALSE, 0, 0}
struct pthread_once_t_
{
- volatile int done; /* indicates if user function has been executed */
+ int state; /* indicates if user function has been executed, or cancelled */
int started;
+ int eventUsers;
+ HANDLE event;
};