|
|
@ -5,6 +5,7 @@
|
|
|
|
#define LOCK ck_spinlock_anderson_lock(&lock, &nad)
|
|
|
|
#define LOCK ck_spinlock_anderson_lock(&lock, &nad)
|
|
|
|
#define UNLOCK ck_spinlock_anderson_unlock(&lock, nad)
|
|
|
|
#define UNLOCK ck_spinlock_anderson_unlock(&lock, nad)
|
|
|
|
#define LOCK_INIT ck_spinlock_anderson_init(&lock, malloc(MAX(64,sizeof(ck_spinlock_anderson_thread_t)) * nthr), nthr)
|
|
|
|
#define LOCK_INIT ck_spinlock_anderson_init(&lock, malloc(MAX(64,sizeof(ck_spinlock_anderson_thread_t)) * nthr), nthr)
|
|
|
|
|
|
|
|
#define LOCKED ck_spinlock_anderson_locked(&lock)
|
|
|
|
|
|
|
|
|
|
|
|
#define NO_LOCAL
|
|
|
|
#define NO_LOCAL
|
|
|
|
|
|
|
|
|
|
|
|