#include <swcdb/core/comm/IoContext.h>
Public Member Functions | |
SWC_CAN_INLINE | IoCtx (int32_t size) |
SWC_CAN_INLINE | IoCtx (bool relative, int32_t size) |
~IoCtx () noexcept | |
Static Public Member Functions | |
static SWC_CAN_INLINE void | init (int32_t size) |
static SWC_CAN_INLINE void | init (bool relative, int32_t size) |
static SWC_CAN_INLINE bool | ok () noexcept |
static Comm::IoContextPtr | io () |
template<typename T_Handler > | |
static SWC_CAN_INLINE void | post (T_Handler &&handler) |
static SWC_CAN_INLINE bool | stopping () noexcept |
static void | reset () noexcept |
Private Attributes | |
Comm::IoContextPtr | m_io |
Static Private Attributes | |
static std::shared_ptr< IoCtx > | m_env = nullptr |
Definition at line 114 of file IoContext.h.
|
inline |
Definition at line 153 of file IoContext.h.
Referenced by init().
|
inline |
Definition at line 158 of file IoContext.h.
|
inlinenoexcept |
Definition at line 162 of file IoContext.h.
|
inlinestatic |
Definition at line 123 of file IoContext.h.
References IoCtx(), m_env, and size.
|
inlinestatic |
Definition at line 118 of file IoContext.h.
References IoCtx(), m_env, and size.
Referenced by SWC::FsBroker::AppContext::AppContext(), and SWC::ThriftBroker::AppContext::AppContext().
|
inlinestatic |
Definition at line 132 of file IoContext.h.
References m_env, ok(), and SWC_ASSERT.
Referenced by SWC::FsBroker::AppContext::AppContext(), SWC::ThriftBroker::AppContext::AppContext(), SWC::ThriftBroker::AppContext::init(), SWC::FsBroker::AppContext::init(), SWC::FsBroker::AppContext::shutting_down(), SWC::ThriftBroker::AppContext::shutting_down(), SWC::ThriftBroker::AppContext::stop(), and SWC::FsBroker::AppContext::stop().
|
inlinestaticnoexcept |
Definition at line 128 of file IoContext.h.
References m_env.
Referenced by io().
|
inlinestatic |
Definition at line 139 of file IoContext.h.
References m_env.
Referenced by SWC::FsBroker::AppContext::handle().
|
inlinestaticnoexcept |
Definition at line 148 of file IoContext.h.
References m_env.
Referenced by SWC::ThriftBroker::AppContext::stop(), and SWC::FsBroker::AppContext::stop().
|
inlinestaticnoexcept |
Definition at line 144 of file IoContext.h.
References m_env.
|
inlinestaticprivate |
Definition at line 166 of file IoContext.h.
Referenced by init(), io(), ok(), post(), reset(), and stopping().
|
private |
Definition at line 165 of file IoContext.h.