diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/threading.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h index d2320aa..7d94f26 100644 --- a/src/threading.h +++ b/src/threading.h | |||
@@ -97,7 +97,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED }; | |||
97 | #define SIGNAL_T CONDITION_VARIABLE | 97 | #define SIGNAL_T CONDITION_VARIABLE |
98 | #define MUTEX_T CRITICAL_SECTION | 98 | #define MUTEX_T CRITICAL_SECTION |
99 | #define MUTEX_INIT( ref) InitializeCriticalSection( ref) | 99 | #define MUTEX_INIT( ref) InitializeCriticalSection( ref) |
100 | #define MUTEX_FREE( ref) do{ DeleteCriticalSection( ref); *ref = INVALID_HANDLE_VALUE;} while(0) | 100 | #define MUTEX_FREE( ref) DeleteCriticalSection( ref) |
101 | #define MUTEX_LOCK( ref) EnterCriticalSection( ref) | 101 | #define MUTEX_LOCK( ref) EnterCriticalSection( ref) |
102 | #define MUTEX_UNLOCK( ref) LeaveCriticalSection( ref) | 102 | #define MUTEX_UNLOCK( ref) LeaveCriticalSection( ref) |
103 | 103 | ||