diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2003-07-06 10:10:32 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-07-06 10:10:32 +0000 |
| commit | 964407197732fe475fe8f9a54cb68884dd447a94 (patch) | |
| tree | 5cafa78cb831b87996f103105197dbac29bf9d58 /lib/libthr/thread/thr_cancel.c | |
| parent | fd1ed3c6753f6589389670857697e7bea8f9409d (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_cancel.c')
| -rw-r--r-- | lib/libthr/thread/thr_cancel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_cancel.c b/lib/libthr/thread/thr_cancel.c index 311cf1e9b11b..180607c9a57b 100644 --- a/lib/libthr/thread/thr_cancel.c +++ b/lib/libthr/thread/thr_cancel.c @@ -80,7 +80,8 @@ retry: * Disconnect the thread from the joinee: */ if ((joined = pthread->join_status.thread) != NULL) { - if (THR_TRYLOCK(&joined->lock) == EBUSY) { + THR_TRYLOCK(&joined->lock, ret); + if (ret == EBUSY) { _thread_critical_exit(pthread); goto retry; } |
