YACLib
C++ library for concurrent tasks execution
|
#include <mutex.hpp>
Public Types | |
using | native_handle_type = void * |
Public Member Functions | |
Mutex ()=default | |
~Mutex () noexcept=default | |
Mutex (const Mutex &)=delete | |
Mutex & | operator= (const Mutex &)=delete |
void | lock () |
bool | try_lock () noexcept |
void | unlock () noexcept |
native_handle_type | native_handle () |
Protected Attributes | |
FiberQueue | _queue |
bool | _occupied {false} |
|
default |
|
defaultnoexcept |
void yaclib::detail::fiber::Mutex::lock | ( | ) |
Definition at line 5 of file mutex.cpp.
References _occupied, _queue, and yaclib::detail::fiber::FiberQueue::Wait().
|
inline |
|
noexcept |
|
noexcept |
Definition at line 20 of file mutex.cpp.
References _occupied, _queue, and yaclib::detail::fiber::FiberQueue::NotifyOne().
Definition at line 27 of file mutex.hpp.
Referenced by lock(), try_lock(), and unlock().
|
protected |