From dbc6f4c07d5f2ea73bb7f1845acccd55049a60dd Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Sun, 29 Jun 2003 23:51:04 +0000 Subject: Sweep through pthread locking and use the new locking primitives for libthr. --- lib/libthr/thread/thr_exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libthr/thread/thr_exit.c') diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c index bea78742e739..441e730aaec3 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; - _SPINLOCK(&pthread->lock); + THR_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; - _SPINUNLOCK(&pthread->lock); + THR_UNLOCK(&pthread->lock); /* Make this thread collectable by the garbage collector. */ PTHREAD_ASSERT(((curthread->attr.flags & PTHREAD_DETACHED) == -- cgit v1.2.3