Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shangyizhou/A-Tiny-Network-Library
/ tid
Function
tid
include/tiny_network/base/CurrentThread.h:14–21 ·
view source on GitHub ↗
内联函数
Source
from the content-addressed store, hash-verified
12
13
// 内联函数
14
inline int tid()
15
{
16
if (__builtin_expect(t_cachedTid == 0, 0))
17
{
18
cacheTid();
19
}
20
return t_cachedTid;
21
}
22
}
23
24
#endif // CURRENT_THREAD_H
Callers
1
isInLoopThread
Method · 0.50
Calls
1
cacheTid
Function · 0.85
Tested by
no test coverage detected