feisty meow concerns codebase  2.140
basis::mutex Class Reference

#include <mutex.h>

Inheritance diagram for basis::mutex:
Collaboration diagram for basis::mutex:

Public Member Functions

 mutex ()
 Constructs a new mutex. More...
 
virtual ~mutex ()
 Destroys the mutex. It should not be locked upon destruction. More...
 
void construct ()
 Constructor for use with malloc/free instead of new/delete. More...
 
void destruct ()
 Destructor for use with malloc/free instead of new/delete. More...
 
void lock ()
 Clamps down on the mutex, if possible. More...
 
void unlock ()
 Gives up the possession of the mutex. More...
 
virtual void establish_lock ()
 Satisfies base class requirements for locking. More...
 
virtual void repeal_lock ()
 Satisfies base class requirements for unlocking. More...
 

Detailed Description

Definition at line 32 of file mutex.h.

Constructor & Destructor Documentation

◆ mutex()

basis::mutex::mutex ( )

Constructs a new mutex.

Definition at line 42 of file mutex.cpp.

References construct().

◆ ~mutex()

basis::mutex::~mutex ( )
virtual

Destroys the mutex. It should not be locked upon destruction.

Definition at line 44 of file mutex.cpp.

References destruct().

Member Function Documentation

◆ construct()

void basis::mutex::construct ( )

Constructor for use with malloc/free instead of new/delete.

Definition at line 50 of file mutex.cpp.

References NULL_POINTER.

Referenced by mutex().

◆ destruct()

void basis::mutex::destruct ( )

Destructor for use with malloc/free instead of new/delete.

Definition at line 75 of file mutex.cpp.

Referenced by ~mutex().

◆ establish_lock()

void basis::mutex::establish_lock ( )
virtual

Satisfies base class requirements for locking.

Implements basis::base_synchronizer.

Definition at line 46 of file mutex.cpp.

References lock().

◆ lock()

◆ repeal_lock()

void basis::mutex::repeal_lock ( )
virtual

Satisfies base class requirements for unlocking.

Implements basis::base_synchronizer.

Definition at line 48 of file mutex.cpp.

References unlock().

◆ unlock()


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