diff options
author | rpj <rpj> | 2004-05-17 01:38:02 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-05-17 01:38:02 +0000 |
commit | 771465fed0cf50ee2dd790723245fc091699c324 (patch) | |
tree | d8c18d095a33fe7c4564bd90c5f313bb9e4057dd /ptw32_reuse.c | |
parent | 8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff) |
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'ptw32_reuse.c')
-rw-r--r-- | ptw32_reuse.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ptw32_reuse.c b/ptw32_reuse.c index b407b82..a21737a 100644 --- a/ptw32_reuse.c +++ b/ptw32_reuse.c @@ -53,7 +53,7 @@ ptw32_threadReusePop (void) { pthread_t t; - EnterCriticalSection(&ptw32_thread_reuse_lock); + EnterCriticalSection (&ptw32_thread_reuse_lock); t = ptw32_threadReuseTop; @@ -67,7 +67,7 @@ ptw32_threadReusePop (void) t = NULL; } - LeaveCriticalSection(&ptw32_thread_reuse_lock); + LeaveCriticalSection (&ptw32_thread_reuse_lock); return t; @@ -79,12 +79,11 @@ ptw32_threadReusePop (void) void ptw32_threadReusePush (pthread_t thread) { - EnterCriticalSection(&ptw32_thread_reuse_lock); + EnterCriticalSection (&ptw32_thread_reuse_lock); - memset(thread, 0, sizeof (*thread)); + memset (thread, 0, sizeof (*thread)); thread->prevReuse = ptw32_threadReuseTop; ptw32_threadReuseTop = thread; - LeaveCriticalSection(&ptw32_thread_reuse_lock); + LeaveCriticalSection (&ptw32_thread_reuse_lock); } - |