diff options
author | rpj <rpj> | 2005-05-15 15:28:24 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-15 15:28:24 +0000 |
commit | 46ae637c4ef03a921d4a06baf99219c6149a7d20 (patch) | |
tree | ca25c87f4285954f598d6f9b11b906d74b24750d /ptw32_threadDestroy.c | |
parent | d4a22be21479c3b52e0ba2d3cfb150a98c426422 (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 */ + |