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

#include <guard_sticky.hpp>

Collaboration diagram for yaclib::detail::LockStickyAwaiter< M >:
[legend]

Public Member Functions

 LockStickyAwaiter (M &m, IExecutor *&e) 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
 
IExecutor *& _executor
 

Detailed Description

template<typename M>
class yaclib::detail::LockStickyAwaiter< M >

Definition at line 12 of file guard_sticky.hpp.

Constructor & Destructor Documentation

◆ LockStickyAwaiter()

template<typename M >
yaclib::detail::LockStickyAwaiter< M >::LockStickyAwaiter ( M m,
IExecutor *&  e 
)
inlineexplicitnoexcept

Definition at line 14 of file guard_sticky.hpp.

Member Function Documentation

◆ await_ready()

template<typename M >
YACLIB_INLINE bool yaclib::detail::LockStickyAwaiter< M >::await_ready ( )
inlinenoexcept

Definition at line 17 of file guard_sticky.hpp.

◆ await_resume()

template<typename M >
constexpr void yaclib::detail::LockStickyAwaiter< M >::await_resume ( )
inlineconstexprnoexcept

Definition at line 33 of file guard_sticky.hpp.

◆ await_suspend()

template<typename M >
template<typename Promise >
YACLIB_INLINE bool yaclib::detail::LockStickyAwaiter< M >::await_suspend ( yaclib_std::coroutine_handle< Promise handle)
inlinenoexcept

Definition at line 23 of file guard_sticky.hpp.

Member Data Documentation

◆ _executor

◆ _mutex

template<typename M >
M& yaclib::detail::LockStickyAwaiter< M >::_mutex
protected

Definition at line 37 of file guard_sticky.hpp.


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