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

Method mark_worker_active

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

Source from the content-addressed store, hash-verified

550}
551
552void thread_pool_executor::mark_worker_active(size_t index) noexcept {
553 assert(index < m_workers.size());
554 m_idle_workers.set_active(index);
555}
556
557void thread_pool_executor::enqueue(concurrencpp::task task) {
558 const auto this_worker = details::s_tl_thread_pool_data.this_worker;

Callers 1

wait_for_taskMethod · 0.80

Calls 2

set_activeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected