diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2000-10-13 22:12:32 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2000-10-13 22:12:32 +0000 |
| commit | fbeb36e4bf72161883eda56a41578de1d8f2f885 (patch) | |
| tree | 06c51ea3d094e4b4c0492667aa46cf83d9e938c6 /lib/libpthread/thread/thr_detach.c | |
| parent | a95b77ec78e646b4b781d4b498bc3be7ddaee44c (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_detach.c')
| -rw-r--r-- | lib/libpthread/thread/thr_detach.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_detach.c b/lib/libpthread/thread/thr_detach.c index 89cc6671179c..3bade9d5b244 100644 --- a/lib/libpthread/thread/thr_detach.c +++ b/lib/libpthread/thread/thr_detach.c @@ -61,9 +61,10 @@ pthread_detach(pthread_t pthread) /* Enter a loop to bring all threads off the join queue: */ while ((next_thread = TAILQ_FIRST(&pthread->join_queue)) != NULL) { /* Remove the thread from the queue: */ - TAILQ_REMOVE(&pthread->join_queue, next_thread, qe); + TAILQ_REMOVE(&pthread->join_queue, next_thread, sqe); + pthread->flags &= ~PTHREAD_FLAGS_IN_JOINQ; - /* Make the thread run: */ + /* Make the thread runnable: */ PTHREAD_NEW_STATE(next_thread,PS_RUNNING); } |
