YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::TimedMutex< Impl > Class Template Reference

#include <timed_mutex.hpp>

Inheritance diagram for yaclib::detail::TimedMutex< Impl >:
[legend]
Collaboration diagram for yaclib::detail::TimedMutex< Impl >:
[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::Mutex< Impl >
void lock ()
 
bool try_lock ()
 
void unlock ()
 
impl_tGetImpl ()
 

Additional Inherited Members

- Public Types inherited from yaclib::detail::Mutex< Impl >
using impl_t = Impl
 Internal.
 

Detailed Description

template<typename Impl>
class yaclib::detail::TimedMutex< Impl >

Definition at line 11 of file timed_mutex.hpp.

Member Function Documentation

◆ try_lock_for()

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

Definition at line 18 of file timed_mutex.hpp.

References yaclib::MakeContract(), and YACLIB_INJECT_FAULT.

◆ try_lock_until()

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

Definition at line 24 of file timed_mutex.hpp.

References yaclib::MakeContract(), and YACLIB_INJECT_FAULT.


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