C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::async_cell< T > Struct Template Reference

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_celloperator= (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, errorvalue
 
event_list events
 

Detailed Description

template<class T>
struct caf::detail::async_cell< T >

Implementation detail for async::future and async::promise.


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