proxygen
|
#include <AsyncioExecutor.h>
Public Types | |
using | Func = folly::Func |
Public Member Functions | |
~AsyncioExecutor () override | |
void | add (Func func) override |
int | fileno () const |
void | drive () noexceptoverride |
Public Member Functions inherited from folly::DrivableExecutor | |
~DrivableExecutor () override=default | |
Public Member Functions inherited from folly::Executor | |
virtual | ~Executor () |
virtual void | addWithPriority (Func, int8_t priority) |
virtual uint8_t | getNumPriorities () const |
Protected Member Functions | |
bool | keepAliveAcquire () override |
void | keepAliveRelease () override |
Private Attributes | |
folly::NotificationQueue< Func > | queue_ |
folly::NotificationQueue< Func >::SimpleConsumer | consumer_ {queue_} |
std::atomic< size_t > | keepAliveCounter_ {1} |
Additional Inherited Members | |
Static Public Member Functions inherited from folly::Executor | |
template<typename ExecutorT > | |
static KeepAlive< ExecutorT > | getKeepAliveToken (ExecutorT *executor) |
template<typename ExecutorT > | |
static KeepAlive< ExecutorT > | getKeepAliveToken (ExecutorT &executor) |
Static Public Attributes inherited from folly::Executor | |
static const int8_t | LO_PRI = SCHAR_MIN |
static const int8_t | MID_PRI = 0 |
static const int8_t | HI_PRI = SCHAR_MAX |
Static Protected Member Functions inherited from folly::Executor | |
template<typename ExecutorT > | |
static bool | isKeepAliveDummy (const KeepAlive< ExecutorT > &keepAlive) |
template<typename ExecutorT > | |
static KeepAlive< ExecutorT > | makeKeepAlive (ExecutorT *executor) |
Definition at line 27 of file AsyncioExecutor.h.
Definition at line 29 of file AsyncioExecutor.h.
|
inlineoverride |
Definition at line 31 of file AsyncioExecutor.h.
References drive(), keepAliveCounter_, and keepAliveRelease().
|
inlineoverridevirtual |
Enqueue a function to executed by this executor. This and all variants must be threadsafe.
Implements folly::Executor.
Definition at line 38 of file AsyncioExecutor.h.
References folly::gen::move, and queue_.
|
inlineoverridevirtualnoexcept |
Implements folly::DrivableExecutor.
Definition at line 46 of file AsyncioExecutor.h.
References consumer_, and folly::exceptionStr().
Referenced by ~AsyncioExecutor().
|
inline |
Definition at line 42 of file AsyncioExecutor.h.
References consumer_.
|
inlineoverrideprotectedvirtual |
Reimplemented from folly::Executor.
Definition at line 59 of file AsyncioExecutor.h.
References keepAliveCounter_.
|
inlineoverrideprotectedvirtual |
Reimplemented from folly::Executor.
Definition at line 67 of file AsyncioExecutor.h.
References keepAliveCounter_.
Referenced by ~AsyncioExecutor().
|
private |
Definition at line 74 of file AsyncioExecutor.h.
|
private |
Definition at line 75 of file AsyncioExecutor.h.
Referenced by keepAliveAcquire(), keepAliveRelease(), and ~AsyncioExecutor().
|
private |
Definition at line 73 of file AsyncioExecutor.h.
Referenced by add().