From 879bb0613c03b10bdf91aa862c2463b7f9f99087 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 2 Sep 2003 16:15:05 +0000 Subject: Added cancelation of/from non-POSIX threads; minor fixes; minor changes. --- pthread_win32_attach_detach_np.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pthread_win32_attach_detach_np.c') diff --git a/pthread_win32_attach_detach_np.c b/pthread_win32_attach_detach_np.c index c798d89..3a6f854 100644 --- a/pthread_win32_attach_detach_np.c +++ b/pthread_win32_attach_detach_np.c @@ -144,6 +144,10 @@ pthread_win32_thread_detach_np () { if (ptw32_processInitialized) { + /* + * Don't use pthread_self() to avoid creating an implicit POSIX thread handle + * unnecessarily. + */ pthread_t self = (pthread_t) pthread_getspecific (ptw32_selfThreadKey); /* -- cgit v1.2.3