diff options
author | mtm <mtm@FreeBSD.org> | 2003-07-06 10:18:48 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-07-06 10:18:48 +0000 |
commit | 2ced154094b1ba76e51108eff45803f60f6731ce (patch) | |
tree | 314e5a3ea0c37ba2ab164337eae32bb02e9f5383 /lib/libthr/thread/thr_exit.c | |
parent | d4808894e4846559ec5d35948da89927a1034b33 (diff) | |
download | FreeBSD-src-2ced154094b1ba76e51108eff45803f60f6731ce.zip FreeBSD-src-2ced154094b1ba76e51108eff45803f60f6731ce.tar.gz |
Change all instances of THR_LOCK/UNLOCK, etc to UMTX_*.
It is a more acurate description of the locks they
operate on.
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 441e730..facd707 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) == |