YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::fiber::TimedMutex Class Reference

#include <timed_mutex.hpp>

Inheritance diagram for yaclib::detail::fiber::TimedMutex:
[legend]
Collaboration diagram for yaclib::detail::fiber::TimedMutex:
[legend]

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
 
Mutexoperator= (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}
 

Detailed Description

Definition at line 8 of file timed_mutex.hpp.

Member Function Documentation

◆ try_lock_for()

template<typename Rep , typename Period >
bool yaclib::detail::fiber::TimedMutex::try_lock_for ( const std::chrono::duration< Rep, Period > &  timeout_duration)
inline

Definition at line 15 of file timed_mutex.hpp.

References yaclib::MakeContract().

◆ try_lock_until()

bool yaclib::detail::fiber::TimedMutex::try_lock_until ( const std::chrono::time_point< Clock, Duration > &  timeout_time)
inline

Definition at line 20 of file timed_mutex.hpp.

References yaclib::MakeContract().


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