MCPcopy Create free account
hub / github.com/TomClabault/HIPRT-Path-Tracer / detach_threads

Method detach_threads

src/Threads/ThreadManager.h:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 static void detach_threads(const std::string& key)
208 {
209 auto find = m_threads_map.find(key);
210 if (find == m_threads_map.end())
211 return;
212
213 for (std::thread& thread : find->second)
214 if (thread.joinable())
215 thread.detach();
216 }
217
218 /**
219 * Adds a dependecy on 'dependency_key' from 'key' such that all the threads started with key

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected