From 9e253ed18b58158600fe1b4eed306c11523e7a53 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 8 Feb 1999 21:19:53 +0000 Subject: Fri Feb 5 13:42:30 1999 Ross Johnson * semaphore.c: Comment format changes. Wed Feb 3 13:04:44 1999 Ross Johnson * cleanup.c: Rename _pthread_*_cleanup() to pthread_*_cleanup(). * pthread.def: Ditto. * pthread.h: Ditto. * pthread.def (pthread_cleanup_push): Remove from export list; the function is defined as a macro under all compilers. (pthread_cleanup_pop): Ditto. * pthread.h: Remove #if defined(). --- sync.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sync.c') diff --git a/sync.c b/sync.c index 5b4ee9a..b7de5ac 100644 --- a/sync.c +++ b/sync.c @@ -123,6 +123,12 @@ pthread_join (pthread_t thread, void **value_ptr) } else { + /* + * FIXME: This call frees memory used to hold the 'thread' + * object. 'thread' will be invalid after the first call. + * + * Only the last exiting join should free 'thread'. + */ _pthread_threadDestroy (thread); } } -- cgit v1.2.3