mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
Add critical section to filename function of each file sink
This commit is contained in:
@@ -70,8 +70,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
const filename_t &filename() const
|
||||
const filename_t &filename()
|
||||
{
|
||||
std::lock_guard<Mutex> lock(base_sink<Mutex>::mutex_);
|
||||
return file_helper_.filename();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user