24 unsigned int *
p = (
unsigned int *) mutex;
25 return !tracelib_test_and_set(p);
31 unsigned int *
p = (
unsigned int *) mutex;
32 while (tracelib_test_and_set(p)) {
void * p
the void* (to be get by dlsym)
int MALP_Spinlock_unlock(MALP_Spinlock *mutex)
Unlocks the given MALP_Spinlock.
int MALP_Spinlock_lock(MALP_Spinlock *mutex)
Locks the given MALP_Spinlock.
volatile unsigned int MALP_Spinlock
The type of spinlocks in MALP.
int MALP_Spinlock_trylock(MALP_Spinlock *mutex)
Tries to lock the given MALP_Spinlock.