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

Method GetThrd

oneflow/core/thread/thread_manager.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32Thread* ThreadMgr::GetThrd(int64_t thrd_id) {
33 auto iter = threads_.find(thrd_id);
34 CHECK(iter != threads_.end()) << " Thread: " << thrd_id << " not found";
35 return iter->second.get();
36}
37
38void ThreadMgr::AddThreads(const HashSet<int64_t>& thread_ids) {
39 const int64_t this_rank = GlobalProcessCtx::Rank();

Callers 4

InitMethod · 0.80
SendMsgWithoutCommNetMethod · 0.80
HandoutTasksFunction · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected