Structs§
- Pthread
Condvar π - Pthread
Mutex π - Pthread
RwLock π
Enums§
Constants§
- PTHREAD_
MUTEX_ πKIND_ UNCHANGED - To differentiate βthe mutex kind has not been changedβ from βthe mutex kind has been set to PTHREAD_MUTEX_DEFAULT and that is equal to some other mutex kindβ, we make the default value of this field not PTHREAD_MUTEX_DEFAULT but this special flag.
Traits§
Functions§
- bytewise_
equal_ πatomic_ relaxed - Do a bytewise comparison of the two places, using relaxed atomic reads. This is used to check if a synchronization primitive matches its static initializer value.
- cond_
create π - cond_
get_ πdata - cond_
init_ πoffset - condattr_
clock_ πoffset - condattr_
get_ πclock_ id - condattr_
set_ πclock_ id - condattr_
translate_ πclock_ id - Translates the clock from what is stored in pthread_condattr_t to our enum.
- mutex_
create π - Eagerly create and initialize a new mutex.
- mutex_
get_ πdata - Returns the mutex data stored at the address that
mutex_ptr
points to. Will raise an error if the mutex has been moved since its first use. - mutex_
init_ πoffset - To ensure an initialized mutex that was moved somewhere else can be distinguished from
a statically initialized mutex that is used the first time, we pick some offset within
pthread_mutex_t
and use it as an βinitializedβ flag. - mutex_
kind_ πfrom_ static_ initializer - Returns the kind of a static initializer.
- mutexattr_
get_ πkind - mutexattr_
kind_ πoffset - mutexattr_
set_ πkind - mutexattr_
translate_ πkind - Translates the mutex kind from what is stored in pthread_mutexattr_t to our enum.
- rwlock_
get_ πdata - rwlock_
init_ πoffset