summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-26 11:35:10 +0000
committerrpj <rpj>1998-07-26 11:35:10 +0000
commit427c771981b2580db95cafbd2097721e9e1b8207 (patch)
tree45592860e8ab2d1af358f1d6d35b86010e8fcbf2
parente564950fd61e9ada9a0c6a599457508b8429c81b (diff)
Sun Jul 26 13:06:12 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* exit.c (_pthread_exit): Clarify comment.
-rw-r--r--ChangeLog1
-rw-r--r--exit.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2cb372e..28bed9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ Sun Jul 26 13:06:12 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
argument which is the return code passed to _endthreadex().
(_pthread_exit): Move thread entry delete call from _pthread_vacuum()
into here. Add more explanation of thread entry deletion.
+ (_pthread_exit): Clarify comment.
* create.c (_pthread_start_call): Change pthread_exit() call to
_pthread_exit() call.
diff --git a/exit.c b/exit.c
index 3714aa2..429dfd2 100644
--- a/exit.c
+++ b/exit.c
@@ -50,10 +50,10 @@ _pthread_exit(void * value, int return_code)
/* CRITICAL SECTION */
pthread_mutex_lock(&_pthread_table_mutex);
- /* Remove the thread entry on exit only if pthread_detach() was
- called AND there are no waiting joins. Otherwise the thread entry
- will be deleted by the last waiting pthread_join() after this
- thread has terminated. */
+ /* Remove the thread entry on exit only if the thread is detached
+ AND there are no waiting joins. Otherwise the thread entry will
+ be deleted by the last waiting pthread_join() after this thread
+ has terminated. */
if (us->detach == TRUE
&& us->join_count == 0)