Constructor Function.
26 {
28
32 if (address)
33 {
35 }
37
40 }
#define SPICES_PROFILE_ZONE
void HandleWakeUp()
Handle WakeUp notify by read one byte data.
std::shared_ptr< Poller > m_Poller
Poller instance.
std::atomic_bool m_IsCallingPendingFunctors
True if is execute pending functors.
std::atomic_bool m_IsLooping
True if is in Looping.
std::atomic_bool m_IsQuit
True if is quit from Looping.
std::unique_ptr< Channel > m_WeakupChannel
Wakeup Channel.
Socket m_WakeupFd
Wakeup Socket.
DWORD m_ThreadId
Thread's identify, which is running this EventLoop.
static std::shared_ptr< Poller > DefaultPoller(EventLoop *loop)
Create Default Poller.
void Connect(InetAddress *connectAddress) const
Connect to socket.
void Create()
Create Non Blocking Socket.
const SOCKET Fd() const
Get this socket fd.