SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Quit()

void Spices::Net::EventLoop::Quit ( )

Quit from Event Loop.

Definition at line 69 of file EventLoop.cpp.

70 {
71 m_IsQuit = true;
72
73 if (!IsInLoopThread())
74 {
75 WakeUp();
76 }
77 }
std::atomic_bool m_IsQuit
True if is quit from Looping.
Definition EventLoop.h:133
void WakeUp()
WakeUp a thread, which wait on recv, by sending one byte data.
bool IsInLoopThread() const
Determine if current thread is in eventloop thread.
Definition EventLoop.h:109

References IsInLoopThread(), and WakeUp().