Name thread.
Name thread.
49 {
51
55 std::stringstream ss;
57
59
61
63 {
65 }
66
67 m_Loops[thread->GetId()] = loop;
69
70 loop->Loop();
71 }
#define SPICES_PROFILE_ZONE
ThreadInitCallback m_ThreadInitCallback
ThreadInitCallback.
InetAddress m_ListenAddress
ListenAddress.
semaphore m_IsThreadsPrepared
ThreadsPrepared condition.
std::vector< EventLoop * > m_Loops
All threads EventLoop collection.
static EventLoop *& GetInst(InetAddress *address=nullptr)
Get EventLoop Instance. @reutrn Returns EventLoop Instance.
static bool SetThreadName(const std::string &name)
Set Thread name.
std::string m_PoolName
This ThreadPool Name.
void Increase()
Increase this semaphore sign.