diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2001-01-27 21:23:58 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2001-01-27 21:23:58 +0000 |
commit | f55c836e316d0880cdbe9188175e5968b4a7aeb1 (patch) | |
tree | 101309202471b622736ee3e2e987537b22b3ac1a /lib/libpthread/arch/vax/_atomic_lock.c | |
parent | fb3803c3802543fbf97f05bead04d00af23e0fd3 (diff) |
Stubs for vax. (build at least)
Diffstat (limited to 'lib/libpthread/arch/vax/_atomic_lock.c')
-rw-r--r-- | lib/libpthread/arch/vax/_atomic_lock.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libpthread/arch/vax/_atomic_lock.c b/lib/libpthread/arch/vax/_atomic_lock.c new file mode 100644 index 00000000000..22f95ffe38c --- /dev/null +++ b/lib/libpthread/arch/vax/_atomic_lock.c @@ -0,0 +1,20 @@ +/* $OpenBSD: _atomic_lock.c,v 1.1 2001/01/27 21:23:56 hugh Exp $ */ + +/* + * Atomic lock for vax + */ + +#include "spinlock.h" + +int +_atomic_lock(volatile _spinlock_lock_t *lock) +{ + return (_thread_slow_atomic_lock(lock)); +} + +int +_atomic_is_locked(volatile _spinlock_lock_t *lock) +{ + + return (*lock != _SPINLOCK_UNLOCKED); +} |