summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_cancel.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-06-29 23:51:04 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-06-29 23:51:04 +0000
commitdbc6f4c07d5f2ea73bb7f1845acccd55049a60dd (patch)
treee9bf941cb7bc23c1c5b2341a239af1a9b41cf044 /lib/libthr/thread/thr_cancel.c
parent2234d5bea27e14811726a905f5a933389335055c (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_cancel.c')
-rw-r--r--lib/libthr/thread/thr_cancel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_cancel.c b/lib/libthr/thread/thr_cancel.c
index 7e1bace02cf3..311cf1e9b11b 100644
--- a/lib/libthr/thread/thr_cancel.c
+++ b/lib/libthr/thread/thr_cancel.c
@@ -80,12 +80,12 @@ retry:
* Disconnect the thread from the joinee:
*/
if ((joined = pthread->join_status.thread) != NULL) {
- if (_spintrylock(&joined->lock) == EBUSY) {
+ if (THR_TRYLOCK(&joined->lock) == EBUSY) {
_thread_critical_exit(pthread);
goto retry;
}
pthread->join_status.thread->joiner = NULL;
- _spinunlock(&joined->lock);
+ THR_UNLOCK(&joined->lock);
joined = pthread->join_status.thread = NULL;
}
pthread->cancelflags |= PTHREAD_CANCELLING;