From d4808894e4846559ec5d35948da89927a1034b33 Mon Sep 17 00:00:00 2001 From: mtm Date: Sun, 6 Jul 2003 10:10:32 +0000 Subject: There's no need for _umtxtrylock to be a separate function. Roll it into the pre-existing macro that's used to call it. --- lib/libthr/thread/thr_spinlock.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/libthr/thread/thr_spinlock.c') 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 -- cgit v1.1