SObjectizer 5.8
Loading...
Searching...
No Matches
so_5::null_mutex_t Class Reference

A class which is like std::mutex but does not do any real actions. More...

#include <sync_helpers.hpp>

Public Member Functions

 null_mutex_t ()
 
 null_mutex_t (const null_mutex_t &)=delete
 
 null_mutex_t (null_mutex_t &&)=delete
 
void lock ()
 
void unlock ()
 
void lock_shared ()
 
void unlock_shared ()
 

Detailed Description

A class which is like std::mutex but does not do any real actions.

Note
Since v.5.8.3 it can also be used instead of std::shared_mutex because empty method lock_shared() and unlock_shared() were added in v.5.8.3.
Since
v.5.5.19.2

Definition at line 30 of file sync_helpers.hpp.

Constructor & Destructor Documentation

◆ null_mutex_t() [1/3]

so_5::null_mutex_t::null_mutex_t ( )
inline

Definition at line 33 of file sync_helpers.hpp.

◆ null_mutex_t() [2/3]

so_5::null_mutex_t::null_mutex_t ( const null_mutex_t & )
delete

◆ null_mutex_t() [3/3]

so_5::null_mutex_t::null_mutex_t ( null_mutex_t && )
delete

Member Function Documentation

◆ lock()

void so_5::null_mutex_t::lock ( )
inline

Definition at line 37 of file sync_helpers.hpp.

◆ lock_shared()

void so_5::null_mutex_t::lock_shared ( )
inline
Since
v.5.8.3

Definition at line 43 of file sync_helpers.hpp.

◆ unlock()

void so_5::null_mutex_t::unlock ( )
inline

Definition at line 38 of file sync_helpers.hpp.

◆ unlock_shared()

void so_5::null_mutex_t::unlock_shared ( )
inline
Since
v.5.8.3

Definition at line 48 of file sync_helpers.hpp.


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