From 771465fed0cf50ee2dd790723245fc091699c324 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 17 May 2004 01:38:02 +0000 Subject: re-indentation, bug fixes, hooks for pre-emptive async cancelation --- ptw32_reuse.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ptw32_reuse.c') 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); } - -- cgit v1.2.3