YACLib
C++ library for concurrent tasks execution
|
#include <timed_mutex.hpp>
Public Member Functions | |
template<typename Rep , typename Period > | |
bool | try_lock_for (const std::chrono::duration< Rep, Period > &timeout_duration) |
template<typename Clock , typename Duration > | |
bool | try_lock_until (const std::chrono::time_point< Clock, Duration > &timeout_time) |
Public Member Functions inherited from yaclib::detail::fiber::Mutex | |
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 () |
Additional Inherited Members | |
Public Types inherited from yaclib::detail::fiber::Mutex | |
using | native_handle_type = void * |
Protected Attributes inherited from yaclib::detail::fiber::Mutex | |
FiberQueue | _queue |
bool | _occupied {false} |
Definition at line 8 of file timed_mutex.hpp.
|
inline |
Definition at line 15 of file timed_mutex.hpp.
References yaclib::MakeContract().
|
inline |
Definition at line 20 of file timed_mutex.hpp.
References yaclib::MakeContract().