MCPcopy Create free account
hub / github.com/colmap/colmap / GetThreadIndex

Method GetThreadIndex

src/colmap/util/threading.cc:294–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294int ThreadPool::GetThreadIndex() {
295 std::unique_lock<std::mutex> lock(mutex_);
296 return thread_id_to_index_.at(GetThreadId());
297}
298
299int GetEffectiveNumThreads(const int num_threads) {
300 int num_effective_threads = num_threads;

Callers 4

ProcessProblemMethod · 0.80
RunMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64