Fix another potential dtor order crash
This commit is contained in:
parent
896b7144b8
commit
2823958ffb
1 changed files with 6 additions and 2 deletions
|
@ -93,8 +93,12 @@ private:
|
|||
}
|
||||
static mutex_class& get_mutex()
|
||||
{
|
||||
static mutex_class x;
|
||||
return x;
|
||||
static bool init = false;
|
||||
static mutex_class* x;
|
||||
if(!init)
|
||||
x = new mutex_class;
|
||||
init = true;
|
||||
return *x;
|
||||
}
|
||||
static void run()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue