MCPcopy Create free account
hub / github.com/BrunoLevy/geogram / uses_parallel_algorithm

Function uses_parallel_algorithm

src/lib/geogram/basic/algorithm.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace GEO {
44
45 bool uses_parallel_algorithm(size_t size) {
46 static bool initialized = false;
47 static bool result = false;
48 if(!initialized) {
49 result =
50 CmdLine::get_arg_bool("sys:multithread") &&
51 CmdLine::get_arg_bool("algo:parallel");
52 initialized = true;
53 }
54 bool large_enough = (size == 0 || size > 65535);
55 return result && large_enough;
56 }
57}

Callers 1

sortFunction · 0.85

Calls 1

get_arg_boolFunction · 0.85

Tested by

no test coverage detected