MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetThisThreadGlobalId

Function GetThisThreadGlobalId

oneflow/core/thread/thread_global_id.cpp:33–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31} // namespace
32
33int64_t GetThisThreadGlobalId() { return *MutThreadLocalUniqueGlobalId(); }
34
35ThreadGlobalIdGuard::ThreadGlobalIdGuard(int64_t thread_global_id)
36 : old_thread_global_id_(GetThisThreadGlobalId()) {

Callers 3

NewTransportTokenMethod · 0.85
CheckThreadGlobalIdMethod · 0.85
ThreadGlobalIdGuardMethod · 0.85

Calls 1

Tested by

no test coverage detected