MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ThreadPoolFixture

Method ThreadPoolFixture

src/test/threadpool_tests.cpp:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26struct ThreadPoolFixture {
27 ThreadPoolFixture() {
28 NUM_WORKERS_DEFAULT = FastRandomContext().randrange(GetNumCores()) + 1;
29 LogInfo("thread pool workers count: %d", NUM_WORKERS_DEFAULT);
30 }
31};
32
33// Test Cases Overview

Callers

nothing calls this directly

Calls 3

GetNumCoresFunction · 0.85
randrangeMethod · 0.80
FastRandomContextClass · 0.50

Tested by

no test coverage detected