diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-12-16 13:26:44 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-12-16 13:26:44 +0000 |
| commit | 320bfcf3f186b450b06332d8af8b34c83871fbc2 (patch) | |
| tree | 2e071e257e31bc11f6169f2b9a65853254ce8ffb /lib | |
| parent | b4db911dc6f60a8e03d40fd9e68880a6dbe49cc2 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc_r/uthread/uthread_cancel.c | 5 | ||||
| -rw-r--r-- | lib/libkse/thread/thr_cancel.c | 5 | ||||
| -rw-r--r-- | lib/libpthread/thread/thr_cancel.c | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/lib/libc_r/uthread/uthread_cancel.c b/lib/libc_r/uthread/uthread_cancel.c index 67c1fb4cfcd1..4c6ca98b0d1d 100644 --- a/lib/libc_r/uthread/uthread_cancel.c +++ b/lib/libc_r/uthread/uthread_cancel.c @@ -65,14 +65,11 @@ _pthread_cancel(pthread_t pthread) case PS_JOIN: /* - * Disconnect the thread from the joinee and - * detach: + * Disconnect the thread from the joinee: */ if (pthread->join_status.thread != NULL) { pthread->join_status.thread->joiner = NULL; - pthread_detach((pthread_t) - pthread->join_status.thread); } pthread->cancelflags |= PTHREAD_CANCELLING; PTHREAD_NEW_STATE(pthread, PS_RUNNING); diff --git a/lib/libkse/thread/thr_cancel.c b/lib/libkse/thread/thr_cancel.c index 67c1fb4cfcd1..4c6ca98b0d1d 100644 --- a/lib/libkse/thread/thr_cancel.c +++ b/lib/libkse/thread/thr_cancel.c @@ -65,14 +65,11 @@ _pthread_cancel(pthread_t pthread) case PS_JOIN: /* - * Disconnect the thread from the joinee and - * detach: + * Disconnect the thread from the joinee: */ if (pthread->join_status.thread != NULL) { pthread->join_status.thread->joiner = NULL; - pthread_detach((pthread_t) - pthread->join_status.thread); } pthread->cancelflags |= PTHREAD_CANCELLING; PTHREAD_NEW_STATE(pthread, PS_RUNNING); diff --git a/lib/libpthread/thread/thr_cancel.c b/lib/libpthread/thread/thr_cancel.c index 67c1fb4cfcd1..4c6ca98b0d1d 100644 --- a/lib/libpthread/thread/thr_cancel.c +++ b/lib/libpthread/thread/thr_cancel.c @@ -65,14 +65,11 @@ _pthread_cancel(pthread_t pthread) case PS_JOIN: /* - * Disconnect the thread from the joinee and - * detach: + * Disconnect the thread from the joinee: */ if (pthread->join_status.thread != NULL) { pthread->join_status.thread->joiner = NULL; - pthread_detach((pthread_t) - pthread->join_status.thread); } pthread->cancelflags |= PTHREAD_CANCELLING; PTHREAD_NEW_STATE(pthread, PS_RUNNING); |
