summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-03-23 19:43:43 +0000
committerrpj <rpj>1999-03-23 19:43:43 +0000
commitab9f05fd540b3eff6456f886edda87cb95bfbadc (patch)
treecce54aa13890262b6c6c8357f64479aedd902752 /private.c
parentaa07e974e0a6277492cc091762751ec28dfe3e96 (diff)
Wed Mar 24 11:32:07 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* misc.c (CancelableWait): Initialise exceptionInformation[2]. (pthread_self): Get a real Win32 thread handle for implicit threads. * cancel.c (pthread_testcancel): Initialise exceptionInformation[2]. * implement.h (SE_INFORMATION): Fix values. * private.c (_pthread_threadDestroy): Close the thread handle. Fri Mar 19 12:57:27 1999 Ross Johnson <rpj@swan.canberra.edu.au> * cancel.c (comments): Update and cleanup. Fri Mar 19 09:12:59 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * private.c (_pthread_threadStart): status returns PTHREAD_CANCELED. * pthread.h (PTHREAD_CANCELED): defined.
Diffstat (limited to 'private.c')
-rw-r--r--private.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/private.c b/private.c
index 9ffd1b3..dd6890c 100644
--- a/private.c
+++ b/private.c
@@ -33,9 +33,6 @@
#include "pthread.h"
#include "implement.h"
-/*
- * Code contributed by John E. Bossom <JEB>.
- */
int
_pthread_processInitialize (void)
@@ -224,7 +221,7 @@ _pthread_threadStart (ThreadParms * threadParms)
*/
return (status);
-} /* threadStart */
+} /* _pthread_threadStart */
void
_pthread_threadDestroy (pthread_t thread)
@@ -238,10 +235,15 @@ _pthread_threadDestroy (pthread_t thread)
CloseHandle (thread->cancelEvent);
}
+ if( thread->threadH != 0 )
+ {
+ CloseHandle( thread->threadH );
+ }
+
free (thread);
}
-} /* threadDestroy */
+} /* _pthread_threadDestroy */
int
_pthread_tkAssocCreate (ThreadKeyAssoc ** assocP,
@@ -347,7 +349,7 @@ FAIL0:
return (result);
-} /* tkAssocCreate */
+} /* _pthread_tkAssocCreate */
void
@@ -376,7 +378,7 @@ _pthread_tkAssocDestroy (ThreadKeyAssoc * assoc)
free (assoc);
}
-} /* tkAssocDestroy */
+} /* _pthread_tkAssocDestroy */
void
@@ -507,9 +509,5 @@ _pthread_callUserDestroyRoutines (pthread_t thread)
}
}
-} /* callUserDestroyRoutines */
-
-/* </JEB> */
-
-
+} /* _pthread_callUserDestroyRoutines */