class DispatcherBoundStorage

Defined at line 72 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h

|DispatcherBoundStorage| encapsulates the subtle work of managing memory

across concurrency domains so |DispatcherBound| could be a minimal wrapper.

Public Methods

void ~DispatcherBoundStorage ()

Defined at line 59 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.cc

void DispatcherBoundStorage ()

Defined at line 74 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h

void Destruct (async_dispatcher_t * dispatcher)

Asynchronously destructs the object that was constructed earlier in

|Construct|.

Defined at line 76 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.cc

void ConstructInternal (async_dispatcher_t * dispatcher, fit::callback<void ()> task)

Defined at line 63 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.cc

void CallInternal (async_dispatcher_t * dispatcher, fit::callback<void ()> member)

Defined at line 68 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.cc

bool has_value ()

Defined at line 77 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h

template <typename Base, typename T, typename... Args>
void Construct (async_dispatcher_t * dispatcher, Args &&... args)

Asynchronously constructs |T| on the |dispatcher|.

|T| will be constructed and later destructed inside tasks posted to the

|dispatcher|.

Defined at line 84 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h

template <template <typename, typename, typename> typename Builder, typename Result, typename T, typename Callable, typename... Args>
auto AsyncCall (async_dispatcher_t * dispatcher, Callable && callable, Args &&... args)

Defined at line 123 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h

template <typename Arg>
auto ForwardOrPassDispatcher (async_dispatcher_t * dispatcher, Arg && arg)

Defined at line 137 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h

Enumerations

enum Operation
Name Value
kDestruct 0
kGetBasePointer 1
kGetPointer 2

Defined at line 149 of file ../../sdk/lib/async_patterns/cpp/internal/dispatcher_bound_storage.h