YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::AwaitOnAwaiter< Handle > Struct Template Referencefinal

#include <await_on_awaiter.hpp>

Inheritance diagram for yaclib::detail::AwaitOnAwaiter< Handle >:
[legend]
Collaboration diagram for yaclib::detail::AwaitOnAwaiter< Handle >:
[legend]

Public Member Functions

 AwaitOnAwaiter (IExecutor &e, Handle caller) noexcept
 
constexpr bool await_ready () const noexcept
 
template<typename Promise >
YACLIB_INLINE void await_suspend (yaclib_std::coroutine_handle< Promise > handle) noexcept
 
constexpr void await_resume () const noexcept
 
- Public Member Functions inherited from yaclib::detail::AwaitOnEvent< false >
AwaitOnEventGetCall () noexcept
 
 AwaitOnEvent (std::size_t n) noexcept
 
InlineCoreHere (InlineCore &caller) noexcept final
 
- Public Member Functions inherited from yaclib::Job
virtual void Drop () noexcept
 
- Public Member Functions inherited from yaclib::IFunc
virtual void Call () noexcept
 
- Public Member Functions inherited from yaclib::IRef
virtual void IncRef () noexcept
 Increments reference counter.
 
virtual void DecRef () noexcept
 Decrements reference counter.
 
virtual std::size_t GetRef () noexcept
 
virtual ~IRef () noexcept=default
 

Additional Inherited Members

- Public Attributes inherited from yaclib::detail::Node
Nodenext = nullptr
 
- Static Public Attributes inherited from yaclib::detail::AwaitOnEvent< false >
static constexpr auto kShared
 
- Protected Attributes inherited from yaclib::detail::AwaitOnEvent< false >
BaseCorejob
 

Detailed Description

template<typename Handle>
struct yaclib::detail::AwaitOnAwaiter< Handle >

Definition at line 59 of file await_on_awaiter.hpp.

Constructor & Destructor Documentation

◆ AwaitOnAwaiter()

template<typename Handle >
yaclib::detail::AwaitOnAwaiter< Handle >::AwaitOnAwaiter ( IExecutor e,
Handle  caller 
)
inlineexplicitnoexcept

Definition at line 60 of file await_on_awaiter.hpp.

Member Function Documentation

◆ await_ready()

template<typename Handle >
constexpr bool yaclib::detail::AwaitOnAwaiter< Handle >::await_ready ( ) const
inlineconstexprnoexcept

Definition at line 64 of file await_on_awaiter.hpp.

◆ await_resume()

template<typename Handle >
constexpr void yaclib::detail::AwaitOnAwaiter< Handle >::await_resume ( ) const
inlineconstexprnoexcept

Definition at line 80 of file await_on_awaiter.hpp.

◆ await_suspend()

template<typename Handle >
template<typename Promise >
YACLIB_INLINE void yaclib::detail::AwaitOnAwaiter< Handle >::await_suspend ( yaclib_std::coroutine_handle< Promise handle)
inlinenoexcept

Definition at line 69 of file await_on_awaiter.hpp.


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