diff options
author | David Leonard <d@cvs.openbsd.org> | 1998-12-18 05:59:19 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1998-12-18 05:59:19 +0000 |
commit | 771cd4d45afd115c066de4b2682205453eac6929 (patch) | |
tree | e2ae5cb642c37fae767bd3a272e68c5a19df7cfa /lib/libc | |
parent | e5f6128f61a9a572c57cf04778f5616489f2e752 (diff) |
add md _atomic_is_locked; clean
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/include/spinlock.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/include/spinlock.h b/lib/libc/include/spinlock.h index e4871f9aede..31e7744f0af 100644 --- a/lib/libc/include/spinlock.h +++ b/lib/libc/include/spinlock.h @@ -29,8 +29,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: spinlock.h,v 1.1 1998/11/20 11:18:41 d Exp $ - * $OpenBSD: spinlock.h,v 1.1 1998/11/20 11:18:41 d Exp $ + * $Id: spinlock.h,v 1.2 1998/12/18 05:59:17 d Exp $ + * $OpenBSD: spinlock.h,v 1.2 1998/12/18 05:59:17 d Exp $ * * Lock definitions used in both libc and libpthread. * @@ -65,6 +65,7 @@ typedef struct { */ __BEGIN_DECLS register_t _atomic_lock __P((volatile register_t *)); +int _atomic_is_locked __P((volatile register_t *)); register_t _thread_slow_atomic_lock __P((volatile register_t *)); void _spinlock __P((spinlock_t *)); void _spinlock_debug __P((spinlock_t *, const char *, int)); |