Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmingHub/Sming
/ isMainThread
Function
isMainThread
Sming/Arch/Host/Components/hostlib/threads.cpp:92–95 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
90
#endif
91
92
[[maybe_unused]] bool isMainThread()
93
{
94
return pthread_equal(pthread_self(), mainThread);
95
}
96
97
void suspend_main_thread()
98
{
Callers
2
suspend_main_thread
Function · 0.85
resume_main_thread
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected