|
Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
|
Shared state for async operations. More...
#include <async_container.h>

Public Member Functions | |
| async_state (std::function< T()> work) | |
| async_state (const async_state &)=delete | |
| async_state & | operator= (const async_state &)=delete |
| async_state (async_state &&)=delete | |
| async_state & | operator= (async_state &&)=delete |
Public Attributes | |
| std::function< T()> | work_ |
| std::optional< T > | result_ |
| std::exception_ptr | exception_ |
| std::atomic< bool > | ready_ {false} |
Shared state for async operations.
This state is shared between the awaitable and the worker thread using shared_ptr, ensuring thread-safe access even when the awaitable is moved or destroyed.
Definition at line 66 of file async_container.h.
|
inlineexplicit |
Definition at line 73 of file async_container.h.
|
delete |
|
delete |
|
delete |
|
delete |
| std::exception_ptr kcenon::container::async::detail::async_state< T >::exception_ |
Definition at line 70 of file async_container.h.
| std::atomic<bool> kcenon::container::async::detail::async_state< T >::ready_ {false} |
Definition at line 71 of file async_container.h.
| std::optional<T> kcenon::container::async::detail::async_state< T >::result_ |
Definition at line 69 of file async_container.h.
| std::function<T()> kcenon::container::async::detail::async_state< T >::work_ |
Definition at line 68 of file async_container.h.