MCPcopy Create free account
hub / github.com/comaps/comaps / DelayedThreadPool

Method DelayedThreadPool

libs/base/thread_pool_delayed.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16} // namespace
17
18DelayedThreadPool::DelayedThreadPool(size_t threadsCount /* = 1 */, Exit e /* = Exit::SkipPending */)
19 : m_exit(e)
20 , m_immediateLastId(kImmediateMaxId)
21 , m_delayedLastId(kDelayedMaxId)
22{
23 for (size_t i = 0; i < threadsCount; ++i)
24 m_threads.emplace_back(threads::SimpleThread(&DelayedThreadPool::ProcessTasks, this));
25}
26
27DelayedThreadPool::~DelayedThreadPool()
28{

Callers

nothing calls this directly

Calls 2

SimpleThreadClass · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected