HPCToolkit
|
Go to the source code of this file.
Classes | |
struct | spinlock_s |
Macros | |
#define | SPINLOCK_UNLOCKED_VALUE (-1L) |
#define | SPINLOCK_LOCKED_VALUE (1L) |
#define | INITIALIZE_SPINLOCK(x) { .thelock = ATOMIC_VAR_INIT(x) } |
#define | SPINLOCK_UNLOCKED INITIALIZE_SPINLOCK(SPINLOCK_UNLOCKED_VALUE) |
#define | SPINLOCK_LOCKED INITIALIZE_SPINLOCK(SPINLOCK_LOCKED_VALUE) |
Typedefs | |
typedef struct spinlock_s | spinlock_t |
Functions | |
static void | spinlock_init (spinlock_t *l) |
static void | spinlock_unlock (spinlock_t *l) |
static bool | spinlock_is_locked (spinlock_t *l) |
static void | spinlock_lock (spinlock_t *l) |
static bool | limit_spinlock_lock (spinlock_t *l, size_t limit, long locked_val) |
static bool | hwt_cas_spinlock_lock (spinlock_t *l, size_t limit, long locked_val) |
static bool | hwt_limit_spinlock_lock (spinlock_t *l, size_t limit, long locked_val) |
#define INITIALIZE_SPINLOCK | ( | x | ) | { .thelock = ATOMIC_VAR_INIT(x) } |
Definition at line 82 of file spinlock.h.
#define SPINLOCK_LOCKED INITIALIZE_SPINLOCK(SPINLOCK_LOCKED_VALUE) |
Definition at line 85 of file spinlock.h.
#define SPINLOCK_LOCKED_VALUE (1L) |
Definition at line 81 of file spinlock.h.
#define SPINLOCK_UNLOCKED INITIALIZE_SPINLOCK(SPINLOCK_UNLOCKED_VALUE) |
Definition at line 84 of file spinlock.h.
#define SPINLOCK_UNLOCKED_VALUE (-1L) |
Definition at line 80 of file spinlock.h.
typedef struct spinlock_s spinlock_t |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 89 of file spinlock.h.
|
inlinestatic |
Definition at line 104 of file spinlock.h.
|
inlinestatic |
|
inlinestatic |