Adding upstream version 0.6.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c49a9029dc
commit
7f70a05c55
465 changed files with 60158 additions and 0 deletions
9
regressions/ck_spinlock/ck_clh.h
Normal file
9
regressions/ck_spinlock/ck_clh.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
#define LOCK_NAME "ck_clh"
|
||||
#define LOCK_DEFINE static ck_spinlock_clh_t CK_CC_CACHELINE *lock = NULL
|
||||
#define LOCK_STATE ck_spinlock_clh_t *na = malloc(MAX(sizeof(ck_spinlock_clh_t), 64))
|
||||
#define LOCK ck_spinlock_clh_lock(&lock, na)
|
||||
#define UNLOCK ck_spinlock_clh_unlock(&na)
|
||||
#define LOCK_INIT ck_spinlock_clh_init(&lock, malloc(MAX(sizeof(ck_spinlock_clh_t), 64)))
|
||||
#define LOCKED ck_spinlock_clh_locked(&lock)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue