refactor: Give internal linkage to global mutex
The `static` keyword was removed by #8674 but I think it should be restored so that this global can't clash with anything else called `::s_mutex` elsewhere in the executable.
This commit is contained in:
parent
d5936a9e08
commit
b788d63044
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
#include <cstring>
|
||||
#include <mutex>
|
||||
|
||||
std::mutex s_mutex;
|
||||
static std::mutex s_mutex;
|
||||
|
||||
//
|
||||
// use C library non-reentrant multibyte conversion with mutex
|
||||
|
|
|
|||
Loading…
Reference in a new issue