mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
mutex protect should_color()
This commit is contained in:
parent
e504aceeb5
commit
74dbf4cf70
@ -135,6 +135,7 @@ public:
|
|||||||
|
|
||||||
bool should_color()
|
bool should_color()
|
||||||
{
|
{
|
||||||
|
std::lock_guard<mutex_t> lock(mutex_);
|
||||||
return should_do_colors_;
|
return should_do_colors_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user