summaryrefslogtreecommitdiff
path: root/pthread_win32_attach_detach_np.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-18 14:34:18 +0000
committerrpj <rpj>2005-05-18 14:34:18 +0000
commit70fb72bb490c66f06cdab08ad656c4ce52c71448 (patch)
tree513aa651f6589c9c3d30dde2d6c0c958c9339d0b /pthread_win32_attach_detach_np.c
parenta10f66e68253f8296ea624ebc6b55cd75cd0ba79 (diff)
''
Diffstat (limited to 'pthread_win32_attach_detach_np.c')
-rw-r--r--pthread_win32_attach_detach_np.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/pthread_win32_attach_detach_np.c b/pthread_win32_attach_detach_np.c
index d839c70..2b99d53 100644
--- a/pthread_win32_attach_detach_np.c
+++ b/pthread_win32_attach_detach_np.c
@@ -263,8 +263,6 @@ pthread_win32_thread_detach_np ()
if (sp != NULL) // otherwise Win32 thread with no implicit POSIX handle.
{
- HANDLE threadH = sp->threadH;
-
ptw32_callUserDestroyRoutines (sp->ptHandle);
(void) pthread_mutex_lock (&sp->cancelLock);
@@ -279,11 +277,6 @@ pthread_win32_thread_detach_np ()
{
ptw32_threadDestroy (sp->ptHandle);
- if (threadH != 0)
- {
- CloseHandle (threadH);
- }
-
TlsSetValue (ptw32_selfThreadKey->key, NULL);
}
}