cortex 0.0.1
Loading...
Searching...
No Matches
cortex::tiny_fiber::Mutex::Guard Class Reference

RAII lock guard for Mutex. More...

#include <mutex.hpp>

Public Member Functions

 Guard (Mutex &mutex)
 
 ~Guard ()
 
 Guard (const Guard &)=delete
 
Guardoperator= (const Guard &)=delete
 
 Guard (Guard &&other) noexcept
 
Guardoperator= (Guard &&other) noexcept
 

Friends

class ConditionVariable
 

Detailed Description

RAII lock guard for Mutex.

Constructor & Destructor Documentation

◆ Guard() [1/3]

cortex::tiny_fiber::Mutex::Guard::Guard ( Mutex mutex)
explicit

◆ ~Guard()

cortex::tiny_fiber::Mutex::Guard::~Guard ( )

◆ Guard() [2/3]

cortex::tiny_fiber::Mutex::Guard::Guard ( const Guard )
delete

◆ Guard() [3/3]

cortex::tiny_fiber::Mutex::Guard::Guard ( Guard &&  other)
noexcept

Member Function Documentation

◆ operator=() [1/2]

Guard & cortex::tiny_fiber::Mutex::Guard::operator= ( const Guard )
delete

◆ operator=() [2/2]

Guard & cortex::tiny_fiber::Mutex::Guard::operator= ( Guard &&  other)
noexcept

Friends And Related Symbol Documentation

◆ ConditionVariable


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