Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ SetIsMainThread
Function
SetIsMainThread
oneflow/core/thread/thread_manager.h:87–87 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
85
86
inline bool IsMainThread() { return *MutIsMainThread(); }
87
inline void SetIsMainThread(bool is_main_thread) { *MutIsMainThread() = is_main_thread; }
88
89
COMMAND(SetIsMainThread(true));
90
Callers
1
thread_manager.h
File · 0.85
Calls
1
MutIsMainThread
Function · 0.85
Tested by
no test coverage detected