Function set_tp

Synopsis

#include <include/spdlog/details/registry.h>

void set_tp(std::shared_ptr< thread_pool > tp)

Description

No description yet.

Source

Lines 127-131 in include/spdlog/details/registry-inl.h. Line 49 in include/spdlog/details/registry.h.

SPDLOG_INLINE void registry::set_tp(std::shared_ptr<thread_pool> tp)
{
    std::lock_guard<std::recursive_mutex> lock(tp_mutex_);
    tp_ = std::move(tp);
}





Add Discussion

Log in to comment