MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / total_threads

Function total_threads

include/rabitqlib/utils/tools.hpp:72–75  ·  view source on GitHub ↗

get number of threads of current sys

Source from the content-addressed store, hash-verified

70
71// get number of threads of current sys
72inline size_t total_threads() {
73 const auto threads = std::thread::hardware_concurrency();
74 return threads == 0 ? 1 : threads;
75}
76
77template <typename T, typename TP>
78float distance_ratio(

Callers 2

constructMethod · 0.85
QGBuilderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected