Add critical section to filename function of each file sink

This commit is contained in:
tt4g
2020-02-12 09:58:16 +09:00
parent 574563d711
commit 0778211116
3 changed files with 5 additions and 3 deletions

View File

@@ -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();
}