summaryrefslogtreecommitdiffstats
path: root/regressions/ck_spinlock/ck_spinlock.h
blob: 938e1ce4f8e7f1c152d17d53ed72eb25196c9088 (plain)
1
2
3
4
5
6
#define LOCK_NAME "ck_spinlock"
#define LOCK_DEFINE static ck_spinlock_t CK_CC_CACHELINE lock = CK_SPINLOCK_INITIALIZER
#define LOCK ck_spinlock_lock_eb(&lock)
#define UNLOCK ck_spinlock_unlock(&lock)
#define LOCKED ck_spinlock_locked(&lock)