1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-09 22:38:01 -08:00
openbsd-src/sys/arch/hppa/include/spinlock.h
guenther a5511fa9f4 Move mutex, condvar, and thread-specific data routes, pthread_once, and
pthread_exit from libpthread to libc, along with low-level bits to
support them.  Major bump to both libc and libpthread.

Requested by libressl team.  Ports testing by naddy@
ok kettenis@
2017-09-05 02:40:54 +00:00

11 lines
264 B
C

/* $OpenBSD: spinlock.h,v 1.5 2017/09/05 02:40:54 guenther Exp $ */
#ifndef _MACHINE_SPINLOCK_H_
#define _MACHINE_SPINLOCK_H_
#define _ATOMIC_LOCK_UNLOCKED (1)
#define _ATOMIC_LOCK_LOCKED (0)
typedef long _atomic_lock_t __attribute__((__aligned__(16)));
#endif