HPCToolkit
|
Go to the source code of this file.
Macros | |
#define | READER_INCREMENT 0x100 |
#define | PHASE_BIT 0x001 |
#define | WRITER_PRESENT 0x002 |
#define | WRITER_MASK (PHASE_BIT | WRITER_PRESENT) |
#define | TICKET_MASK ~(WRITER_MASK) |
Functions | |
void | pfq_rwlock_init (pfq_rwlock_t *l) |
void | pfq_rwlock_read_lock (pfq_rwlock_t *l) |
void | pfq_rwlock_read_unlock (pfq_rwlock_t *l) |
void | pfq_rwlock_write_lock (pfq_rwlock_t *l, pfq_rwlock_node_t *me) |
void | pfq_rwlock_write_unlock (pfq_rwlock_t *l, pfq_rwlock_node_t *me) |
#define PHASE_BIT 0x001 |
Definition at line 81 of file pfq-rwlock.c.
#define READER_INCREMENT 0x100 |
Definition at line 79 of file pfq-rwlock.c.
#define TICKET_MASK ~(WRITER_MASK) |
Definition at line 85 of file pfq-rwlock.c.
#define WRITER_MASK (PHASE_BIT | WRITER_PRESENT) |
Definition at line 84 of file pfq-rwlock.c.
#define WRITER_PRESENT 0x002 |
Definition at line 82 of file pfq-rwlock.c.
void pfq_rwlock_init | ( | pfq_rwlock_t * | l | ) |
Definition at line 110 of file pfq-rwlock.c.
void pfq_rwlock_read_lock | ( | pfq_rwlock_t * | l | ) |
void pfq_rwlock_read_unlock | ( | pfq_rwlock_t * | l | ) |
void pfq_rwlock_write_lock | ( | pfq_rwlock_t * | l, |
pfq_rwlock_node_t * | me | ||
) |
Definition at line 149 of file pfq-rwlock.c.
void pfq_rwlock_write_unlock | ( | pfq_rwlock_t * | l, |
pfq_rwlock_node_t * | me | ||
) |
Definition at line 211 of file pfq-rwlock.c.