mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
clang-format
This commit is contained in:
parent
420b17ae65
commit
fd54719351
@ -41,7 +41,7 @@ struct async_factory_impl
|
|||||||
{
|
{
|
||||||
auto ®istry_inst = details::registry::instance();
|
auto ®istry_inst = details::registry::instance();
|
||||||
|
|
||||||
//create global thread pool if not already exists..
|
// create global thread pool if not already exists..
|
||||||
std::lock_guard<std::recursive_mutex>(registry_inst.tp_mutex());
|
std::lock_guard<std::recursive_mutex>(registry_inst.tp_mutex());
|
||||||
auto tp = registry_inst.get_tp();
|
auto tp = registry_inst.get_tp();
|
||||||
if (tp == nullptr)
|
if (tp == nullptr)
|
||||||
|
@ -72,7 +72,6 @@ public:
|
|||||||
tp_ = std::move(tp);
|
tp_ = std::move(tp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::shared_ptr<thread_pool> get_tp()
|
std::shared_ptr<thread_pool> get_tp()
|
||||||
{
|
{
|
||||||
std::lock_guard<std::recursive_mutex> lock(tp_mutex_);
|
std::lock_guard<std::recursive_mutex> lock(tp_mutex_);
|
||||||
@ -173,7 +172,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::recursive_mutex &tp_mutex()
|
std::recursive_mutex &tp_mutex()
|
||||||
{
|
{
|
||||||
return tp_mutex_;
|
return tp_mutex_;
|
||||||
}
|
}
|
||||||
@ -184,7 +183,6 @@ public:
|
|||||||
return s_instance;
|
return s_instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
registry()
|
registry()
|
||||||
: formatter_(new pattern_formatter("%+"))
|
: formatter_(new pattern_formatter("%+"))
|
||||||
|
Loading…
Reference in New Issue
Block a user