diff options
author | mtm <mtm@FreeBSD.org> | 2003-06-29 23:51:04 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-06-29 23:51:04 +0000 |
commit | 7f75cc45e943577f1bfd1324bb39e212b9531d54 (patch) | |
tree | e9bf941cb7bc23c1c5b2341a239af1a9b41cf044 /lib/libthr/thread/thr_exit.c | |
parent | 39a4899732da552e6e0de76201566ee295c841fc (diff) | |
download | FreeBSD-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_exit.c')
-rw-r--r-- | lib/libthr/thread/thr_exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c index bea7874..441e730 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) == |