diff options
author | rpj <rpj> | 2005-05-16 15:42:44 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-16 15:42:44 +0000 |
commit | a824c43d3f20fc5722c5fd8f0f942f632b961723 (patch) | |
tree | e33174f1e54bcb5dffa3fb16be69713f4cc497c0 /ptw32_threadDestroy.c | |
parent | 08e2916eb07fb75b2907032e2418316bf980d945 (diff) |
''
Diffstat (limited to 'ptw32_threadDestroy.c')
-rw-r--r-- | ptw32_threadDestroy.c | 19 |
1 files changed, 1 insertions, 18 deletions
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 */ + |