MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / getThreadIndex

Method getThreadIndex

src/UtilsCtrl/ThreadPool/UThreadPool.cpp:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130CIndex UThreadPool::getThreadIndex(const CSize tid) {
131 int index = CGRAPH_SECONDARY_THREAD_COMMON_ID;
132 const auto result = thread_record_map_.find(tid);
133 if (result != thread_record_map_.end()) {
134 index = result->second;
135 }
136
137 return index;
138}
139
140
141CStatus UThreadPool::destroy() {

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected