neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::switchable_mutex Class Reference

#include <mutex.hpp>

Inheritance diagram for neolib::switchable_mutex:
neolib::i_lockable

Public Member Functions

 switchable_mutex ()
 
void set_single_threaded ()
 
void set_multi_threaded ()
 
void set_multi_threaded_spinlock ()
 
void lock () noexcept final
 
void unlock () noexcept final
 
bool try_lock () noexcept final
 

Detailed Description

Definition at line 208 of file mutex.hpp.

Constructor & Destructor Documentation

◆ switchable_mutex()

neolib::switchable_mutex::switchable_mutex ( )
inline

Definition at line 211 of file mutex.hpp.

Member Function Documentation

◆ lock()

void neolib::switchable_mutex::lock ( )
inlinefinalvirtualnoexcept

Implements neolib::i_lockable.

Definition at line 229 of file mutex.hpp.

◆ set_multi_threaded()

void neolib::switchable_mutex::set_multi_threaded ( )
inline

Definition at line 220 of file mutex.hpp.

◆ set_multi_threaded_spinlock()

void neolib::switchable_mutex::set_multi_threaded_spinlock ( )
inline

Definition at line 224 of file mutex.hpp.

◆ set_single_threaded()

void neolib::switchable_mutex::set_single_threaded ( )
inline

Definition at line 216 of file mutex.hpp.

◆ try_lock()

bool neolib::switchable_mutex::try_lock ( )
inlinefinalvirtualnoexcept

Implements neolib::i_lockable.

Definition at line 247 of file mutex.hpp.

◆ unlock()

void neolib::switchable_mutex::unlock ( )
inlinefinalvirtualnoexcept

Implements neolib::i_lockable.

Definition at line 238 of file mutex.hpp.


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