diff options
author | rpj <rpj> | 2011-03-25 09:22:50 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-25 09:22:50 +0000 |
commit | 559e1bc4051f90d7a014bd4e4f5649e136dec412 (patch) | |
tree | 70e6f76c3b353b0b74b698a51088f5b9a38e53ab /implement.h | |
parent | 395de1c8a9a25c343a6784cfc3ecf729c48024d8 (diff) |
Robust mutex streamlining
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/implement.h b/implement.h index 1067bce..b4c80b3 100644 --- a/implement.h +++ b/implement.h @@ -243,11 +243,7 @@ typedef enum ptw32_robust_state_t_ ptw32_robust_state_t; struct ptw32_robust_node_t_ { pthread_mutex_t mx; - ptw32_mcs_lock_t lock; /* Exclusive access to this robust mutex */ ptw32_robust_state_t stateInconsistent; -#if 0 - int inList; -#endif ptw32_robust_node_t* prev; ptw32_robust_node_t* next; }; @@ -600,15 +596,8 @@ extern "C" int ptw32_rwlock_check_need_init (pthread_rwlock_t * rwlock); int ptw32_robust_mutex_inherit(pthread_mutex_t * mutex); -#if 1 void ptw32_robust_mutex_add(pthread_mutex_t* mutex, pthread_t self); - void ptw32_robust_mutex_remove(pthread_mutex_t* mutex); - void ptw32_robust_mutex_quick_remove(pthread_mutex_t* mutex, ptw32_thread_t* otp); -#else - void ptw32_robust_mutex_add(pthread_mutex_t* mutex); - void ptw32_robust_mutex_remove(pthread_mutex_t* mutex, pthread_t self); - void ptw32_robust_mutex_quick_remove(pthread_mutex_t* mutex, ptw32_thread_t* tp); -#endif + void ptw32_robust_mutex_remove(pthread_mutex_t* mutex, ptw32_thread_t* otp); DWORD ptw32_RegisterCancelation (PAPCFUNC callback, |