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

Function GlobalSessionUtilMutex

oneflow/core/framework/session_util.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace {
21
22std::mutex* GlobalSessionUtilMutex() {
23 static std::mutex global_id2session_map_mutex;
24 return &global_id2session_map_mutex;
25}
26
27std::vector<int64_t>* RegsiteredSessionIds() {
28 static std::vector<int64_t> default_sess_id;

Callers 3

GetDefaultSessionIdFunction · 0.85
RegsterSessionIdFunction · 0.85
ClearSessionIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected