folly::VirtualEventBase::add

add overloads

Synopses

Declared in <folly/Executor.h>

Enqueue a function to be executed by this executor. This and all variants must be threadsafe.

virtual
void
add(Func func) = 0;
» more...

Runs the given function in the EventBase thread.

virtual
void
add(folly::Func f) override;
» more...

Parameters

NameDescription
funcThe unit of work to enqueue.
fThe function to run in the EventBase thread.

See Also

runInEventBaseThread