diff options
| author | d <> | 1998-12-18 05:59:17 +0000 |
|---|---|---|
| committer | d <> | 1998-12-18 05:59:17 +0000 |
| commit | 99b122da0763e128d032140e009efd47e0f12bec (patch) | |
| tree | 7f50677c5e4b108db6c09aa74965c7f518957258 | |
| parent | b1f354cb9ac9f0e438b65c8b37d6acf3f66b848e (diff) | |
| download | openbsd-99b122da0763e128d032140e009efd47e0f12bec.tar.gz openbsd-99b122da0763e128d032140e009efd47e0f12bec.tar.bz2 openbsd-99b122da0763e128d032140e009efd47e0f12bec.zip | |
add md _atomic_is_locked; clean
| -rw-r--r-- | src/lib/libc/include/spinlock.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/include/spinlock.h b/src/lib/libc/include/spinlock.h index e4871f9aed..31e7744f0a 100644 --- a/src/lib/libc/include/spinlock.h +++ b/src/lib/libc/include/spinlock.h | |||
| @@ -29,8 +29,8 @@ | |||
| 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | * SUCH DAMAGE. | 30 | * SUCH DAMAGE. |
| 31 | * | 31 | * |
| 32 | * $Id: spinlock.h,v 1.1 1998/11/20 11:18:41 d Exp $ | 32 | * $Id: spinlock.h,v 1.2 1998/12/18 05:59:17 d Exp $ |
| 33 | * $OpenBSD: spinlock.h,v 1.1 1998/11/20 11:18:41 d Exp $ | 33 | * $OpenBSD: spinlock.h,v 1.2 1998/12/18 05:59:17 d Exp $ |
| 34 | * | 34 | * |
| 35 | * Lock definitions used in both libc and libpthread. | 35 | * Lock definitions used in both libc and libpthread. |
| 36 | * | 36 | * |
| @@ -65,6 +65,7 @@ typedef struct { | |||
| 65 | */ | 65 | */ |
| 66 | __BEGIN_DECLS | 66 | __BEGIN_DECLS |
| 67 | register_t _atomic_lock __P((volatile register_t *)); | 67 | register_t _atomic_lock __P((volatile register_t *)); |
| 68 | int _atomic_is_locked __P((volatile register_t *)); | ||
| 68 | register_t _thread_slow_atomic_lock __P((volatile register_t *)); | 69 | register_t _thread_slow_atomic_lock __P((volatile register_t *)); |
| 69 | void _spinlock __P((spinlock_t *)); | 70 | void _spinlock __P((spinlock_t *)); |
| 70 | void _spinlock_debug __P((spinlock_t *, const char *, int)); | 71 | void _spinlock_debug __P((spinlock_t *, const char *, int)); |
