C++ Actor Framework 1.0.0
|
Implementation detail for async::future and async::promise. More...
#include <async_cell.hpp>
Public Types | |
using | atomic_count = std::atomic<size_t> |
using | event = std::pair<async::execution_context_ptr, action> |
using | event_list = std::vector<event> |
using | value_type = std::conditional_t<std::is_void_v<T>, unit_t, T> |
Public Member Functions | |
bool | subscribe (async::execution_context_ptr ctx, action callback) |
async_cell (const async_cell &)=delete | |
async_cell & | operator= (const async_cell &)=delete |
Public Attributes | |
atomic_count | promises |
std::byte | padding [CAF_CACHE_LINE_SIZE - sizeof(atomic_count)] |
std::mutex | mtx |
std::variant< none_t, value_type, error > | value |
event_list | events |
Implementation detail for async::future and async::promise.