Manager for per‐thread EventBase objects. This class will find or create a EventBase for the current thread, associated with thread‐specific storage for that thread. Although a typical application will generally only have one EventBaseManager, there is no restriction on multiple instances; the EventBases belong to one instance are isolated from those of another.
Synopsis
Declared in <folly/io/async/EventBaseManager.h>
class EventBaseManager;
Member Functions
Name |
Description |
|
Constructors |
|
Destroys the manager. |
Clear the EventBase for this thread. |
|
Get the EventBase for this thread, or create one if none exists yet. |
|
Get the EventBase for this thread. |
|
Set the EventBase to be used by this thread. |