From b16324e722e525519c8428c70f46f6d0b18b9bc1 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 26 Mar 2003 04:02:24 +0000 Subject: - 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. --- lib/libpthread/thread/thr_spinlock.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/libpthread') diff --git a/lib/libpthread/thread/thr_spinlock.c b/lib/libpthread/thread/thr_spinlock.c index 544ea3c..ad7b222 100644 --- a/lib/libpthread/thread/thr_spinlock.c +++ b/lib/libpthread/thread/thr_spinlock.c @@ -44,6 +44,13 @@ #include "thr_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 -- cgit v1.1