|
Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
|
Awaitable that runs work in a separate thread. More...
#include <async_container.h>

Public Member Functions | |
| async_awaitable (std::function< T()> work) | |
| async_awaitable (async_awaitable &&) noexcept=default | |
| async_awaitable & | operator= (async_awaitable &&) noexcept=default |
| async_awaitable (const async_awaitable &)=delete | |
| async_awaitable & | operator= (const async_awaitable &)=delete |
| bool | await_ready () const noexcept |
| void | await_suspend (std::coroutine_handle<> handle) |
| T | await_resume () |
Public Attributes | |
| std::shared_ptr< async_state< T > > | state_ |
Awaitable that runs work in a separate thread.
Uses shared_ptr to manage state, ensuring the worker thread can safely access state even if the awaitable is moved.
Definition at line 90 of file async_container.h.
|
inlineexplicit |
Definition at line 94 of file async_container.h.
|
defaultnoexcept |
|
delete |
|
inlinenodiscardnoexcept |
Definition at line 103 of file async_container.h.
|
inline |
Definition at line 125 of file async_container.h.
References kcenon::container::async::detail::async_awaitable< T >::state_.
|
inline |
Definition at line 108 of file async_container.h.
References kcenon::container::async::detail::async_awaitable< T >::state_.
|
defaultnoexcept |
|
delete |
| std::shared_ptr<async_state<T> > kcenon::container::async::detail::async_awaitable< T >::state_ |
Definition at line 92 of file async_container.h.
Referenced by kcenon::container::async::detail::async_awaitable< T >::await_resume(), and kcenon::container::async::detail::async_awaitable< T >::await_suspend().