aboutsummaryrefslogtreecommitdiff
path: root/regressions/ck_spinlock/ck_cas.h
diff options
context:
space:
mode:
Diffstat (limited to 'regressions/ck_spinlock/ck_cas.h')
-rw-r--r--regressions/ck_spinlock/ck_cas.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/regressions/ck_spinlock/ck_cas.h b/regressions/ck_spinlock/ck_cas.h
new file mode 100644
index 000000000000..bd4ae13253de
--- /dev/null
+++ b/regressions/ck_spinlock/ck_cas.h
@@ -0,0 +1,6 @@
+#define LOCK_NAME "ck_cas"
+#define LOCK_DEFINE static ck_spinlock_cas_t CK_CC_CACHELINE lock = CK_SPINLOCK_CAS_INITIALIZER
+#define LOCK ck_spinlock_cas_lock_eb(&lock)
+#define UNLOCK ck_spinlock_cas_unlock(&lock)
+#define LOCKED ck_spinlock_cas_locked(&lock)
+