From 46ae637c4ef03a921d4a06baf99219c6149a7d20 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 15 May 2005 15:28:24 +0000 Subject: '' --- ptw32_threadDestroy.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'ptw32_threadDestroy.c') diff --git a/ptw32_threadDestroy.c b/ptw32_threadDestroy.c index b88e5d9..aa95e2c 100644 --- a/ptw32_threadDestroy.c +++ b/ptw32_threadDestroy.c @@ -47,12 +47,6 @@ ptw32_threadDestroy (pthread_t thread) if (tp != NULL) { - (void) pthread_mutex_lock (&tp->cancelLock); - tp->state = PThreadStateLast; - (void) pthread_mutex_unlock (&tp->cancelLock); - - ptw32_callUserDestroyRoutines (thread); - /* * Copy thread state so that the thread can be atomically NULLed. */ @@ -72,17 +66,6 @@ ptw32_threadDestroy (pthread_t thread) (void) pthread_mutex_destroy(&threadCopy.cancelLock); (void) pthread_mutex_destroy(&threadCopy.threadLock); - -#if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__) - /* - * See documentation for endthread vs endthreadex. - */ - if (threadCopy.threadH != 0) - { - CloseHandle (threadCopy.threadH); - } -#endif - } - } /* ptw32_threadDestroy */ + -- cgit v1.2.3