Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenshuo/muduo
/ isMainThread
Method
isMainThread
muduo/base/Thread.cc:127–130 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
125
}
126
127
bool CurrentThread::isMainThread()
128
{
129
return tid() == ::getpid();
130
}
131
132
void CurrentThread::sleepUsec(int64_t usec)
133
{
Callers
nothing calls this directly
Calls
1
tid
Function · 0.85
Tested by
no test coverage detected