summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-03-26 04:02:24 +0000
committerjeff <jeff@FreeBSD.org>2003-03-26 04:02:24 +0000
commitb16324e722e525519c8428c70f46f6d0b18b9bc1 (patch)
tree23941a59360abf1f23a2109a15011a66807ae876 /lib/libc_r
parente83d116ac9c75acdc5e784978e799e942dc57d96 (diff)
downloadFreeBSD-src-b16324e722e525519c8428c70f46f6d0b18b9bc1.zip
FreeBSD-src-b16324e722e525519c8428c70f46f6d0b18b9bc1.tar.gz
- Define a _spinunlock() function so that threading implementations may do
more complicated things than just setting the lock to 0. - Implement stubs for this function in libc and the two threading libraries that are currently in the tree.
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/uthread_spinlock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_spinlock.c b/lib/libc_r/uthread/uthread_spinlock.c
index e05aa4a..0c8eae3 100644
--- a/lib/libc_r/uthread/uthread_spinlock.c
+++ b/lib/libc_r/uthread/uthread_spinlock.c
@@ -44,6 +44,12 @@
#include "pthread_private.h"
+void
+_spinunlock(spinlock_t *lck)
+{
+ lck->access_lock = 0;
+}
+
/*
* 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