summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-02-08 21:19:53 +0000
committerrpj <rpj>1999-02-08 21:19:53 +0000
commit9e253ed18b58158600fe1b4eed306c11523e7a53 (patch)
tree7583ba194efd2f8c8b035866d0f63a36d7bbb216 /sync.c
parent856068d292843ed7e8b3c49ecf55bd5f5c1b2368 (diff)
Fri Feb 5 13:42:30 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* semaphore.c: Comment format changes. Wed Feb 3 13:04:44 1999 Ross Johnson <rpj@swan.canberra.edu.au> * 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().
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c6
1 files changed, 6 insertions, 0 deletions
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);
}
}