summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_spinlock.c
diff options
context:
space:
mode:
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