YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::LockAwaiter< M, Shared > Class Template Reference

#include <mutex_awaiter.hpp>

Inheritance diagram for yaclib::detail::LockAwaiter< M, Shared >:
[legend]
Collaboration diagram for yaclib::detail::LockAwaiter< M, Shared >:
[legend]

Public Member Functions

 LockAwaiter (M &m) noexcept
 
YACLIB_INLINE bool await_ready () noexcept
 
template<typename Promise >
YACLIB_INLINE bool await_suspend (yaclib_std::coroutine_handle< Promise > handle) noexcept
 
constexpr void await_resume () noexcept
 

Protected Attributes

M_mutex
 

Detailed Description

template<typename M, bool Shared = false>
class yaclib::detail::LockAwaiter< M, Shared >

Definition at line 11 of file mutex_awaiter.hpp.

Constructor & Destructor Documentation

◆ LockAwaiter()

template<typename M , bool Shared = false>
yaclib::detail::LockAwaiter< M, Shared >::LockAwaiter ( M m)
inlineexplicitnoexcept

Definition at line 13 of file mutex_awaiter.hpp.

Member Function Documentation

◆ await_ready()

template<typename M , bool Shared = false>
YACLIB_INLINE bool yaclib::detail::LockAwaiter< M, Shared >::await_ready ( )
inlinenoexcept

Definition at line 16 of file mutex_awaiter.hpp.

◆ await_resume()

template<typename M , bool Shared = false>
constexpr void yaclib::detail::LockAwaiter< M, Shared >::await_resume ( )
inlineconstexprnoexcept

Definition at line 33 of file mutex_awaiter.hpp.

◆ await_suspend()

template<typename M , bool Shared = false>
template<typename Promise >
YACLIB_INLINE bool yaclib::detail::LockAwaiter< M, Shared >::await_suspend ( yaclib_std::coroutine_handle< Promise handle)
inlinenoexcept

Definition at line 25 of file mutex_awaiter.hpp.

Member Data Documentation

◆ _mutex

template<typename M , bool Shared = false>
M& yaclib::detail::LockAwaiter< M, Shared >::_mutex
protected

Definition at line 37 of file mutex_awaiter.hpp.


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