diff options
author | rpj <rpj> | 2005-03-12 23:00:53 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-03-12 23:00:53 +0000 |
commit | 47d030b0ab9adf502451ef1558eeca50e67063c0 (patch) | |
tree | 2754c946c36b276241e44208ad6d7f5c6cd45bce /implement.h | |
parent | 4ec6a9e7044d8c853d1cd734facb21316f850106 (diff) |
New design for pthread_once (with cancelability); ABI change
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/implement.h b/implement.h index 5ba9260..abba13c 100644 --- a/implement.h +++ b/implement.h @@ -318,6 +318,11 @@ struct pthread_rwlockattr_t_ int pshared; }; +enum ptw32_once_state { + PTW32_ONCE_CLEAR = 0x0, + PTW32_ONCE_DONE = 0x1, + PTW32_ONCE_CANCELLED = 0x2 +}; typedef struct { pthread_cond_t cond; @@ -478,7 +483,7 @@ extern CRITICAL_SECTION ptw32_cond_list_lock; extern CRITICAL_SECTION ptw32_cond_test_init_lock; extern CRITICAL_SECTION ptw32_rwlock_test_init_lock; extern CRITICAL_SECTION ptw32_spinlock_test_init_lock; -extern ptw32_once_control_t ptw32_once_control; +extern CRITICAL_SECTION ptw32_once_event_lock; #ifdef _UWIN extern int pthread_count; |