MCPcopy 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
127bool CurrentThread::isMainThread()
128{
129 return tid() == ::getpid();
130}
131
132void CurrentThread::sleepUsec(int64_t usec)
133{

Callers

nothing calls this directly

Calls 1

tidFunction · 0.85

Tested by

no test coverage detected