diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2002-05-24 04:32:28 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-05-24 04:32:28 +0000 |
| commit | 5eb8d1f0b06897d05898ed3ba684d8860f9bef97 (patch) | |
| tree | 15691e04d3960954bb9843fcfd9d5beaf2553f80 /lib/libpthread/thread/thr_exit.c | |
| parent | a119f259955f142a20d551d91b53716aecd57edb (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
| -rw-r--r-- | lib/libpthread/thread/thr_exit.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index c9513cfac15a..fd90e2959077 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -202,22 +202,8 @@ _pthread_exit(void *status) pthread = curthread->joiner; curthread->joiner = NULL; - switch (pthread->suspended) { - case SUSP_JOIN: - /* - * The joining thread is suspended. Change the - * suspension state to make the thread runnable when it - * is resumed: - */ - pthread->suspended = SUSP_NO; - break; - case SUSP_NO: - /* Make the joining thread runnable: */ - PTHREAD_NEW_STATE(pthread, PS_RUNNING); - break; - default: - PANIC("Unreachable code reached"); - } + /* Make the joining thread runnable: */ + PTHREAD_NEW_STATE(pthread, PS_RUNNING); /* Set the return value for the joining thread: */ pthread->join_status.ret = curthread->ret; |
