codex
Loading...
Searching...
No Matches
mutex Class Reference

Public Member Functions

void lock (void)
 
void unlock (void)
 
void lock (void)
 
void unlock (void)
 
void lock (void)
 
void unlock (void)
 

Private Types

enum  { UNLOCKED , LOCKED , SLEEPING }
 

Private Attributes

std::atomic_flag f = {}
 
int val = 0
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
UNLOCKED 
LOCKED 
SLEEPING 

Member Function Documentation

◆ lock() [1/3]

void mutex::lock ( void )
inline

◆ lock() [2/3]

void mutex::lock ( void )

◆ lock() [3/3]

void mutex::lock ( void )

◆ unlock() [1/3]

void mutex::unlock ( void )
inline

◆ unlock() [2/3]

void mutex::unlock ( void )
inline

◆ unlock() [3/3]

void mutex::unlock ( void )

Member Data Documentation

◆ f

std::atomic_flag mutex::f = {}
private

◆ val

int mutex::val = 0
private

The documentation for this class was generated from the following files: