folly::EventHandler::setEdgeTriggered

If supported by the backend updates the event to be edge-triggered. Returns true iff the update was successful.

Synopsis

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

bool
setEdgeTriggered();

Description

This should only be used for already registered events (e.g. after registerHandler/registerInternalHandler calls). Calling any other method on the EventHandler may reset this flag. This can be useful to avoid read calls with eventfds.

Return Value

true if the event was updated to be edge-triggered, false otherwise.