MCPcopy 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
86inline bool IsMainThread() { return *MutIsMainThread(); }
87inline void SetIsMainThread(bool is_main_thread) { *MutIsMainThread() = is_main_thread; }
88
89COMMAND(SetIsMainThread(true));
90

Callers 1

thread_manager.hFile · 0.85

Calls 1

MutIsMainThreadFunction · 0.85

Tested by

no test coverage detected