MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / idle_worker_set

Method idle_worker_set

source/executors/thread_pool_executor.cpp:88–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86} // namespace concurrencpp::details
87
88idle_worker_set::idle_worker_set(size_t size) : m_approx_size(0), m_idle_flags(std::make_unique<padded_flag[]>(size)), m_size(size) {}
89
90void idle_worker_set::set_idle(size_t idle_thread) noexcept {
91 const auto before = m_idle_flags[idle_thread].flag.exchange(status::idle, std::memory_order_relaxed);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected