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

Method enqueue

source/executors/thread_executor.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void thread_executor::enqueue(concurrencpp::task task) {
32 std::unique_lock<std::mutex> lock(m_lock);
33 if (m_abort) {
34 details::throw_runtime_shutdown_exception(name);
35 }
36
37 enqueue_impl(lock, task);
38}
39
40void thread_executor::enqueue(std::span<concurrencpp::task> tasks) {
41 std::unique_lock<std::mutex> lock(m_lock);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected