MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / init_thread_pool

Function init_thread_pool

3rd/spdlog/include/spdlog/async.h:76–80  ·  view source on GitHub ↗

set global thread pool.

Source from the content-addressed store, hash-verified

74
75// set global thread pool.
76inline void init_thread_pool(size_t q_size, size_t thread_count)
77{
78 auto tp = std::make_shared<details::thread_pool>(q_size, thread_count);
79 details::registry::instance().set_tp(std::move(tp));
80}
81
82// get the global thread pool.
83inline std::shared_ptr<spdlog::details::thread_pool> thread_pool()

Callers

nothing calls this directly

Calls 1

set_tpMethod · 0.80

Tested by

no test coverage detected