summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch/i386/_atomic_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/arch/i386/_atomic_lock.c')
-rw-r--r--lib/libpthread/arch/i386/_atomic_lock.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libpthread/arch/i386/_atomic_lock.c b/lib/libpthread/arch/i386/_atomic_lock.c
index 87d3d62ce4c..8e97ec7c3e9 100644
--- a/lib/libpthread/arch/i386/_atomic_lock.c
+++ b/lib/libpthread/arch/i386/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.6 2001/03/13 00:05:51 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
/* David Leonard, <d@csee.uq.edu.au>. Public domain. */
/*
@@ -23,11 +23,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
return (old != _SPINLOCK_UNLOCKED);
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
- /* Return true if the lock is locked (i.e., is not unlocked). */
- return (*lock != _SPINLOCK_UNLOCKED);
-}