diff options
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r-- | lib/libthr/thread/thr_private.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index e42bb14..081a0eb 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -139,10 +139,8 @@ } while (0) #define PTHREAD_NEW_STATE(thrd, newstate) do { \ - if (newstate == PS_RUNNING) { \ - if (thr_kill(thrd->thr_id, SIGTHR)) \ - abort(); \ - } \ + if (newstate == PS_RUNNING) \ + thr_wake(thrd->thr_id); \ PTHREAD_SET_STATE(thrd, newstate); \ } while (0) |