SpiecsEngine
 
Loading...
Searching...
No Matches

◆ GetAllLoops()

std::vector< EventLoop * > Spices::Net::EventLoopThreadPool::GetAllLoops ( )

Get all thread EventLoop.

Returns
Returns all thread EventLoop.

Definition at line 34 of file EventLoopThreadPool.cpp.

35 {
37
38 if (m_Loops.empty())
39 {
40 return std::vector<EventLoop*>(1, EventLoopThreadWrapper::GetInst());
41 }
42 else
43 {
44 return m_Loops;
45 }
46 }
#define SPICES_PROFILE_ZONE
std::vector< EventLoop * > m_Loops
All threads EventLoop collection.
static EventLoop *& GetInst(InetAddress *address=nullptr)
Get EventLoop Instance. @reutrn Returns EventLoop Instance.