You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ck/regressions/ck_spinlock/ck_mcs.h

8 lines
313 B

14 years ago
#define LOCK_NAME "ck_mcs"
#define LOCK_DEFINE static ck_spinlock_mcs_t CK_CC_CACHELINE lock = NULL
#define LOCK_STATE ck_spinlock_mcs_context_t node CK_CC_CACHELINE;
#define LOCK ck_spinlock_mcs_lock(&lock, &node)
#define UNLOCK ck_spinlock_mcs_unlock(&lock, &node)
#define LOCKED ck_spinlock_mcs_locked(&lock)
14 years ago