Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mutex Class Reference

A mutex provides mutual exclusion of access to certain data that is accessed by multiple threads. More...

#include <mutex.h>

Public Member Functions

 Mutex ()
 
 ~Mutex ()
 
 Mutex (Mutex &&)=delete
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 
void lock ()
 
void unlock ()
 

Private Attributes

SDL_mutex * mMutex
 

Detailed Description

A mutex provides mutual exclusion of access to certain data that is accessed by multiple threads.

Definition at line 32 of file mutex.h.

Constructor & Destructor Documentation

◆ Mutex() [1/3]

Mutex::Mutex ( )
inline

Definition at line 65 of file mutex.h.

◆ ~Mutex()

Mutex::~Mutex ( )
inline

Definition at line 70 of file mutex.h.

◆ Mutex() [2/3]

Mutex::Mutex ( Mutex &&  )
delete

◆ Mutex() [3/3]

Mutex::Mutex ( const Mutex )
delete

Member Function Documentation

◆ lock()

void Mutex::lock ( )
inline

Definition at line 75 of file mutex.h.

◆ operator=()

Mutex & Mutex::operator= ( const Mutex )
delete

◆ unlock()

void Mutex::unlock ( )
inline

Definition at line 81 of file mutex.h.

Member Data Documentation

◆ mMutex

SDL_mutex* Mutex::mMutex
private

Definition at line 45 of file mutex.h.


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