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
11
regressions/ck_spinlock/ck_ticket.h
Normal file
11
regressions/ck_spinlock/ck_ticket.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <ck_spinlock.h>
|
||||
|
||||
#define LOCK_NAME "ck_ticket"
|
||||
#define LOCK_DEFINE static ck_spinlock_ticket_t CK_CC_CACHELINE lock = CK_SPINLOCK_TICKET_INITIALIZER
|
||||
#define LOCK ck_spinlock_ticket_lock(&lock)
|
||||
#define UNLOCK ck_spinlock_ticket_unlock(&lock)
|
||||
#ifdef CK_F_SPINLOCK_TICKET_TRYLOCK
|
||||
#define TRYLOCK ck_spinlock_ticket_trylock(&lock)
|
||||
#endif
|
||||
#define LOCKED ck_spinlock_ticket_locked(&lock)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue