The default Timekeeper implementation which uses a HHWheelTimer on an EventBase in a dedicated thread. Users needn't deal with this directly, it is used by default by Future methods that work with timeouts.
Synopsis
Declared in <folly/futures/ThreadWheelTimekeeper.h>
class ThreadWheelTimekeeper
: public EventBaseThreadTimekeeper
Base Classes
Name |
Description |
A Timekeeper that schedules timeouts on an externally supplied EventBase. |
Member Functions
Name |
Description |
|
But it doesn't have to be a singleton. |
|
Destroys the timekeeper and stops its EventBase thread. |
|
Implement the Timekeeper interface |
Unsafe version of after that returns an inline Future. Any work added to this future will run inline on the Timekeeper's thread. This can potentially cause problems with timing. |
|
Returns a future that will complete at the requested time. |
|
Unsafe version of at that returns an inline Future. Any work added to this future will run inline on the Timekeeper's thread. This can potentially cause problems with timing. |
Protected Data Members
Name |
Description |
The EventBase used to schedule timeouts. |
|
The EventBase driving the wheel timer. |
|
The dedicated thread running the EventBase loop. |
Created with MrDocs