summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_gc.c
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-06-29 23:51:04 +0000
committermtm <mtm@FreeBSD.org>2003-06-29 23:51:04 +0000
commit7f75cc45e943577f1bfd1324bb39e212b9531d54 (patch)
treee9bf941cb7bc23c1c5b2341a239af1a9b41cf044 /lib/libthr/thread/thr_gc.c
parent39a4899732da552e6e0de76201566ee295c841fc (diff)
downloadFreeBSD-src-7f75cc45e943577f1bfd1324bb39e212b9531d54.zip
FreeBSD-src-7f75cc45e943577f1bfd1324bb39e212b9531d54.tar.gz
Sweep through pthread locking and use the new locking primitives for
libthr.
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 e2aa753..0948996 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;
- _SPINLOCK(&pthread->lock);
+ THR_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) {
- _SPINUNLOCK(&pthread->lock);
+ THR_UNLOCK(&pthread->lock);
continue;
}
@@ -141,7 +141,7 @@ _thread_gc(pthread_addr_t arg)
*/
pthread_cln = pthread;
- _SPINUNLOCK(&pthread->lock);
+ THR_UNLOCK(&pthread->lock);
/*
* Retire the architecture specific id so it may be
OpenPOWER on IntegriCloud