folly::AtomicNotificationQueue::arm

Tries to arm the queue. 1) If the queue was empty: the queue becomes armed and true is returned. 2) Otherwise returns false. Can be called from consumer thread only.

Synopsis

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

bool
arm();

Return Value

True if the queue was empty and is now armed.