summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_gc.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_gc.c
parent964407197732fe475fe8f9a54cb68884dd447a94 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_gc.c')
-rw-r--r--lib/libthr/thread/thr_gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_gc.c b/lib/libthr/thread/thr_gc.c
index 09489967635c..1f6bc6b84133 100644
--- a/lib/libthr/thread/thr_gc.c
+++ b/lib/libthr/thread/thr_gc.c
@@ -106,7 +106,7 @@ _thread_gc(pthread_addr_t arg)
if (pthread == _thread_initial)
continue;
- THR_LOCK(&pthread->lock);
+ UMTX_LOCK(&pthread->lock);
/*
* Check if the stack was not specified by
@@ -128,7 +128,7 @@ _thread_gc(pthread_addr_t arg)
* it on the dead thread list.
*/
if ((pthread->attr.flags & PTHREAD_DETACHED) == 0) {
- THR_UNLOCK(&pthread->lock);
+ UMTX_UNLOCK(&pthread->lock);
continue;
}
@@ -141,7 +141,7 @@ _thread_gc(pthread_addr_t arg)
*/
pthread_cln = pthread;
- THR_UNLOCK(&pthread->lock);
+ UMTX_UNLOCK(&pthread->lock);
/*
* Retire the architecture specific id so it may be