SNode.C
|
#include <EventLoop.h>
Public Member Functions | |
EventLoop (const EventLoop &eventLoop)=delete | |
EventLoop & | operator= (const EventLoop &eventLoop)=delete |
EventMultiplexer & | getEventMultiplexer () |
Static Public Member Functions | |
static EventLoop & | instance () |
static unsigned long | getTickCounter () |
static core::State | getEventLoopState () |
Private Member Functions | |
EventLoop () | |
~EventLoop ()=default | |
TickStatus | _tick (const utils::Timeval &timeOut) |
Static Private Member Functions | |
static bool | init (int argc, char *argv[]) |
static TickStatus | tick (const utils::Timeval &timeOut) |
static int | start (const utils::Timeval &timeOut) |
static void | stop () |
static void | free () |
static void | stoponsig (int sig) |
Private Attributes | |
core::EventMultiplexer & | eventMultiplexer |
Static Private Attributes | |
static int | stopsig = 0 |
static unsigned long | tickCounter = 0 |
static core::State | eventLoopState = State::LOADED |
Friends | |
class | SNodeC |
Definition at line 62 of file EventLoop.h.
|
delete |
|
private |
Definition at line 75 of file EventLoop.cpp.
References eventMultiplexer.
|
privatedefault |
|
private |
Definition at line 136 of file EventLoop.cpp.
References eventLoopState, eventMultiplexer, core::RUNNING, core::STOPPING, core::SUCCESS, core::EventMultiplexer::tick(), and tickCounter.
Referenced by free(), start(), and tick().
|
staticprivate |
Definition at line 249 of file EventLoop.cpp.
References _tick(), eventLoopState, eventMultiplexer, core::DynamicLoader::execDlCloseAll(), instance(), utils::Timeval::operator-=(), utils::Timeval::operator>(), utils::system::sigabbrev_np(), core::EventMultiplexer::signal(), core::STOPPING, stopsig, core::SUCCESS, and core::EventMultiplexer::terminate().
Referenced by core::SNodeC::free(), start(), and tick().
|
static |
Definition at line 93 of file EventLoop.cpp.
References eventLoopState.
Referenced by core::eventLoopState(), and core::SNodeC::state().
EventMultiplexer & core::EventLoop::getEventMultiplexer | ( | ) |
Definition at line 89 of file EventLoop.cpp.
References eventMultiplexer.
Referenced by core::eventreceiver::AcceptEventReceiver::AcceptEventReceiver(), core::eventreceiver::ConnectEventReceiver::ConnectEventReceiver(), core::Event::Event(), core::eventreceiver::ExceptionalConditionEventReceiver::ExceptionalConditionEventReceiver(), core::eventreceiver::ReadEventReceiver::ReadEventReceiver(), core::TimerEventReceiver::TimerEventReceiver(), and core::eventreceiver::WriteEventReceiver::WriteEventReceiver().
|
static |
Definition at line 85 of file EventLoop.cpp.
References tickCounter.
Referenced by express::Controller::Controller(), core::getTickCounterAsString(), and express::Controller::next().
|
staticprivate |
Definition at line 98 of file EventLoop.cpp.
References eventLoopState, core::getTickCounterAsString(), and core::INITIALIZED.
Referenced by core::SNodeC::init().
|
static |
Definition at line 79 of file EventLoop.cpp.
Referenced by core::eventreceiver::AcceptEventReceiver::AcceptEventReceiver(), core::eventreceiver::ConnectEventReceiver::ConnectEventReceiver(), core::Event::Event(), core::eventreceiver::ExceptionalConditionEventReceiver::ExceptionalConditionEventReceiver(), free(), core::eventreceiver::ReadEventReceiver::ReadEventReceiver(), start(), tick(), core::TimerEventReceiver::TimerEventReceiver(), and core::eventreceiver::WriteEventReceiver::WriteEventReceiver().
|
staticprivate |
Definition at line 184 of file EventLoop.cpp.
References _tick(), eventLoopState, free(), core::INITIALIZED, instance(), core::INTERRUPTED, core::NOOBSERVER, core::RUNNING, stoponsig(), stopsig, core::SUCCESS, and core::TRACE.
Referenced by core::SNodeC::start().
|
staticprivate |
Definition at line 245 of file EventLoop.cpp.
References eventLoopState, and core::STOPPING.
Referenced by core::SNodeC::stop(), and stoponsig().
|
staticprivate |
Definition at line 296 of file EventLoop.cpp.
References utils::system::sigabbrev_np(), stop(), and stopsig.
Referenced by start().
|
staticprivate |
Definition at line 159 of file EventLoop.cpp.
References _tick(), core::EventMultiplexer::clearEventQueue(), eventLoopState, eventMultiplexer, free(), core::INITIALIZED, instance(), and core::TRACE.
Referenced by core::SNodeC::tick().
|
friend |
Definition at line 99 of file EventLoop.h.
|
staticprivate |
Definition at line 97 of file EventLoop.h.
Referenced by _tick(), free(), getEventLoopState(), init(), start(), stop(), and tick().
|
private |
Definition at line 91 of file EventLoop.h.
Referenced by _tick(), EventLoop(), free(), getEventMultiplexer(), and tick().
|
staticprivate |
Definition at line 93 of file EventLoop.h.
Referenced by free(), start(), and stoponsig().
|
staticprivate |
Definition at line 95 of file EventLoop.h.
Referenced by _tick(), and getTickCounter().