MCPcopy Create free account
hub / github.com/Niko1221/Strata / check

Function check

engine/src/kernels/cpu/pool_affinity_test.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace cpu = strata::kernels::cpu;
10
11static bool check(bool ok, const char* message) {
12 if (!ok) std::fprintf(stderr, "Windows affinity test: %s (error %lu)\n", message, (unsigned long) GetLastError());
13 return ok;
14}
15
16static bool select(const std::vector<ULONG>& ids) {
17 return SetThreadSelectedCpuSets(GetCurrentThread(), ids.empty() ? nullptr : ids.data(), (ULONG) ids.size()) != 0;

Callers 4

host_round_tripsFunction · 0.70
inherited_defaultFunction · 0.70
host_sibling_layoutFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected