HPCToolkit
pfq-rwlock.c File Reference
#include "hpctoolkit-config.h"
#include "pfq-rwlock.h"
Include dependency graph for pfq-rwlock.c:

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)
 

Macro Definition Documentation

◆ PHASE_BIT

#define PHASE_BIT   0x001

Definition at line 81 of file pfq-rwlock.c.

◆ READER_INCREMENT

#define READER_INCREMENT   0x100

Definition at line 79 of file pfq-rwlock.c.

◆ TICKET_MASK

#define TICKET_MASK   ~(WRITER_MASK)

Definition at line 85 of file pfq-rwlock.c.

◆ WRITER_MASK

#define WRITER_MASK   (PHASE_BIT | WRITER_PRESENT)

Definition at line 84 of file pfq-rwlock.c.

◆ WRITER_PRESENT

#define WRITER_PRESENT   0x002

Definition at line 82 of file pfq-rwlock.c.

Function Documentation

◆ pfq_rwlock_init()

void pfq_rwlock_init ( pfq_rwlock_t l)

Definition at line 110 of file pfq-rwlock.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pfq_rwlock_read_lock()

void pfq_rwlock_read_lock ( pfq_rwlock_t l)

Definition at line 122 of file pfq-rwlock.c.

Here is the caller graph for this function:

◆ pfq_rwlock_read_unlock()

void pfq_rwlock_read_unlock ( pfq_rwlock_t l)

Definition at line 134 of file pfq-rwlock.c.

Here is the caller graph for this function:

◆ pfq_rwlock_write_lock()

void pfq_rwlock_write_lock ( pfq_rwlock_t l,
pfq_rwlock_node_t me 
)

Definition at line 149 of file pfq-rwlock.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pfq_rwlock_write_unlock()

void pfq_rwlock_write_unlock ( pfq_rwlock_t l,
pfq_rwlock_node_t me 
)

Definition at line 211 of file pfq-rwlock.c.

Here is the call graph for this function:
Here is the caller graph for this function: