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

Method thread_executor

source/executors/thread_executor.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using concurrencpp::thread_executor;
5
6thread_executor::thread_executor(const std::function<void(std::string_view thread_name)>& thread_started_callback,
7 const std::function<void(std::string_view thread_name)>& thread_terminated_callback) :
8 derivable_executor<concurrencpp::thread_executor>(details::consts::k_thread_executor_name),
9 m_abort(false), m_atomic_abort(false), m_thread_started_callback(thread_started_callback),
10 m_thread_terminated_callback(thread_terminated_callback) {}
11
12thread_executor::~thread_executor() noexcept {
13 assert(m_workers.empty());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected