Fix potential dtor ordering crash in file hasher
This commit is contained in:
parent
5a0ccb1401
commit
896b7144b8
1 changed files with 6 additions and 2 deletions
|
@ -15,8 +15,12 @@ namespace
|
|||
|
||||
mutex_class& global_queue_mutex()
|
||||
{
|
||||
static mutex_class m;
|
||||
return m;
|
||||
static bool init = false;
|
||||
static mutex_class* m;
|
||||
if(!init)
|
||||
m = new mutex_class();
|
||||
init = true;
|
||||
return *m;
|
||||
}
|
||||
|
||||
uint64_t calculate_headersize(uint64_t f, uint64_t h)
|
||||
|
|
Loading…
Add table
Reference in a new issue