diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2003-03-26 04:02:24 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2003-03-26 04:02:24 +0000 |
commit | cc3521d66055ed9c5cc720613a3f0e84589a4abe (patch) | |
tree | 23941a59360abf1f23a2109a15011a66807ae876 /lib/libpthread/thread/thr_spinlock.c | |
parent | 6410552316016c539531b28ecf9947cd4ddfb553 (diff) | |
download | src-cc3521d66055ed9c5cc720613a3f0e84589a4abe.tar.gz src-cc3521d66055ed9c5cc720613a3f0e84589a4abe.zip |
- 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.
Notes
Notes:
svn path=/head/; revision=112665
Diffstat (limited to 'lib/libpthread/thread/thr_spinlock.c')
-rw-r--r-- | lib/libpthread/thread/thr_spinlock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_spinlock.c b/lib/libpthread/thread/thr_spinlock.c index 544ea3cdf857..ad7b2223ef3e 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 |