diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2016-11-28 20:08:52 +0000 |
---|---|---|
committer | Olivier Houchard <cognet@FreeBSD.org> | 2016-11-28 20:08:52 +0000 |
commit | 85bd1e2d0af14ce6dfa00ef86745a52c0b500ca5 (patch) | |
tree | cd409659d3827b3b1c810ebd9d629408d14696f2 /regressions/ck_spinlock/ck_cas.h | |
download | src-85bd1e2d0af14ce6dfa00ef86745a52c0b500ca5.tar.gz src-85bd1e2d0af14ce6dfa00ef86745a52c0b500ca5.zip |
Import concurrencykit as of commit 566bb28dba963a1904e0889b74fe7005a5bc5eb8
Notes
Notes:
svn path=/vendor-sys/ck/dist/; revision=309260
Diffstat (limited to 'regressions/ck_spinlock/ck_cas.h')
-rw-r--r-- | regressions/ck_spinlock/ck_cas.h | 6 |
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) + |