MCPcopy Create free account
hub / github.com/bcndev/bytecoin / RingCheckerMulticore

Method RingCheckerMulticore

src/Core/Multicore.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88RingCheckerMulticore::RingCheckerMulticore() {
89 auto th_count = std::max<size_t>(2, 3 * std::thread::hardware_concurrency() / 4);
90 // we use more energy but have the same speed when using hyperthreading
91 // std::cout << "Starting multicore ring checker using " << th_count << "/" << std::thread::hardware_concurrency()
92 // << " cpus" << std::endl;
93 for (size_t i = 0; i != th_count; ++i)
94 threads.emplace_back(&RingCheckerMulticore::thread_run, this);
95}
96
97RingCheckerMulticore::~RingCheckerMulticore() {
98 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected