folly::AtomicNotificationQueue::push

push overloads

Synopses

Declared in <folly/io/async/AtomicNotificationQueue.h>

Adds a task into the queue. Can be called from any thread.

template<typename... Args>
bool
push(Args&&... args);
» more...

Same as above but RequestContext is passed from caller.

template<typename... Args>
bool
push(
    std::shared_ptr<RequestContext> rctx,
    Args&&... args);
» more...

Return Value

  • True if the queue was armed, in which case producers are expected to notify the consumer thread.
  • True if the queue was armed.

Parameters

NameDescription
argsArguments forwarded to construct the task.
rctxThe request context to associate with the task.