summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libkse/thread/thr_cancel.c9
-rw-r--r--lib/libpthread/thread/thr_cancel.c9
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/libkse/thread/thr_cancel.c b/lib/libkse/thread/thr_cancel.c
index fc05b55..2c3ae59 100644
--- a/lib/libkse/thread/thr_cancel.c
+++ b/lib/libkse/thread/thr_cancel.c
@@ -64,16 +64,7 @@ _pthread_cancel(pthread_t pthread)
break;
case PS_JOIN:
- /*
- * Disconnect the thread from the joinee:
- */
- if (pthread->join_status.thread != NULL) {
- pthread->join_status.thread->joiner
- = NULL;
- pthread->join_status.thread = NULL;
- }
pthread->cancelflags |= THR_CANCELLING;
- _thr_setrunnable_unlocked(pthread);
break;
case PS_SUSPENDED:
diff --git a/lib/libpthread/thread/thr_cancel.c b/lib/libpthread/thread/thr_cancel.c
index fc05b55..2c3ae59 100644
--- a/lib/libpthread/thread/thr_cancel.c
+++ b/lib/libpthread/thread/thr_cancel.c
@@ -64,16 +64,7 @@ _pthread_cancel(pthread_t pthread)
break;
case PS_JOIN:
- /*
- * Disconnect the thread from the joinee:
- */
- if (pthread->join_status.thread != NULL) {
- pthread->join_status.thread->joiner
- = NULL;
- pthread->join_status.thread = NULL;
- }
pthread->cancelflags |= THR_CANCELLING;
- _thr_setrunnable_unlocked(pthread);
break;
case PS_SUSPENDED:
OpenPOWER on IntegriCloud