summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_spinlock.c
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-07-06 10:10:32 +0000
committermtm <mtm@FreeBSD.org>2003-07-06 10:10:32 +0000
commitd4808894e4846559ec5d35948da89927a1034b33 (patch)
tree5cafa78cb831b87996f103105197dbac29bf9d58 /lib/libthr/thread/thr_spinlock.c
parentb505b0da1eee42e0ad971581478b7a0637a486ec (diff)
downloadFreeBSD-src-d4808894e4846559ec5d35948da89927a1034b33.zip
FreeBSD-src-d4808894e4846559ec5d35948da89927a1034b33.tar.gz
There's no need for _umtxtrylock to be a separate function.
Roll it into the pre-existing macro that's used to call it.
Diffstat (limited to 'lib/libthr/thread/thr_spinlock.c')
-rw-r--r--lib/libthr/thread/thr_spinlock.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libthr/thread/thr_spinlock.c b/lib/libthr/thread/thr_spinlock.c
index dcb6fac..259977a 100644
--- a/lib/libthr/thread/thr_spinlock.c
+++ b/lib/libthr/thread/thr_spinlock.c
@@ -64,16 +64,6 @@ _spinlock(spinlock_t *lck)
abort();
}
-int
-_umtxtrylock(struct umtx *lck)
-{
- int error;
- error = umtx_trylock(lck, curthread->thr_id);
- if (error != 0 && error != EBUSY)
- abort();
- return (error);
-}
-
/*
* Lock a location for the running thread. Yield to allow other
* threads to run if this thread is blocked because the lock is
OpenPOWER on IntegriCloud