summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_exit.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-07-06 10:18:48 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-07-06 10:18:48 +0000
commit659045ffbfab93ae8438b07e81c09da1271bd9d8 (patch)
tree314e5a3ea0c37ba2ab164337eae32bb02e9f5383 /lib/libthr/thread/thr_exit.c
parent964407197732fe475fe8f9a54cb68884dd447a94 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_exit.c')
-rw-r--r--lib/libthr/thread/thr_exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 441e730aaec3..facd707b9d8f 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -146,7 +146,7 @@ retry:
/* Check if there is a thread joining this one: */
if (curthread->joiner != NULL) {
pthread = curthread->joiner;
- THR_LOCK(&pthread->lock);
+ UMTX_LOCK(&pthread->lock);
curthread->joiner = NULL;
/* Make the joining thread runnable: */
@@ -156,7 +156,7 @@ retry:
pthread->join_status.ret = curthread->ret;
pthread->join_status.error = 0;
pthread->join_status.thread = NULL;
- THR_UNLOCK(&pthread->lock);
+ UMTX_UNLOCK(&pthread->lock);
/* Make this thread collectable by the garbage collector. */
PTHREAD_ASSERT(((curthread->attr.flags & PTHREAD_DETACHED) ==