diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-26 04:02:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-26 04:02:24 +0000 |
commit | b16324e722e525519c8428c70f46f6d0b18b9bc1 (patch) | |
tree | 23941a59360abf1f23a2109a15011a66807ae876 /lib/libc/gen/_spinlock_stub.c | |
parent | e83d116ac9c75acdc5e784978e799e942dc57d96 (diff) | |
download | FreeBSD-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/gen/_spinlock_stub.c')
-rw-r--r-- | lib/libc/gen/_spinlock_stub.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/gen/_spinlock_stub.c b/lib/libc/gen/_spinlock_stub.c index e53fdb4..85faf28 100644 --- a/lib/libc/gen/_spinlock_stub.c +++ b/lib/libc/gen/_spinlock_stub.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); */ __weak_reference(_atomic_lock_stub, _atomic_lock); __weak_reference(_spinlock_stub, _spinlock); +__weak_reference(_spinlock_stub, _spinunlock); __weak_reference(_spinlock_debug_stub, _spinlock_debug); @@ -65,6 +66,14 @@ _spinlock_stub(spinlock_t *lck) } /* + * This function is a stub for the spinunlock function in libpthread. + */ +void +_spinunlock_stub(spinlock_t *lck) +{ +} + +/* * This function is a stub for the debug spinlock function in libpthread. */ void |