From 47d030b0ab9adf502451ef1558eeca50e67063c0 Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 12 Mar 2005 23:00:53 +0000 Subject: New design for pthread_once (with cancelability); ABI change --- implement.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'implement.h') 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; -- cgit v1.2.3