proxygen
|
#include <Baton.h>
Public Member Functions | |
void | scheduleTimeout (TimeoutController::Duration timeoutMs) |
Private Member Functions | |
void | cancelTimeout () |
Private Attributes | |
std::function< void()> | timeoutFunc_ {nullptr} |
FiberManager * | fiberManager_ {nullptr} |
intptr_t | timeoutPtr_ {0} |
Friends | |
class | Baton |
Provides a way to schedule a wakeup for a wait()ing fiber. A TimeoutHandler must be passed to Baton::wait(TimeoutHandler&) before a timeout is scheduled. It is only safe to use the TimeoutHandler on the same thread as the wait()ing fiber. scheduleTimeout() may only be called once prior to the end of the associated Baton's life.
|
private |
Definition at line 204 of file Baton.cpp.
Referenced by folly::fibers::Baton::wait().
void folly::fibers::Baton::TimeoutHandler::scheduleTimeout | ( | TimeoutController::Duration | timeoutMs | ) |
Definition at line 192 of file Baton.cpp.
Referenced by TEST().
|
private |
Definition at line 228 of file Baton.h.
Referenced by folly::fibers::Baton::wait().
|
private |
Definition at line 227 of file Baton.h.
Referenced by folly::fibers::Baton::wait().
|
private |
Definition at line 230 of file Baton.h.
Referenced by folly::fibers::Baton::wait().