mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 11:56:31 +02:00
mlocker: fix dtor ordering problem
leak the mutex instead, it's a one off
This commit is contained in:
parent
963d247154
commit
0cfd2ae5e7
@ -84,8 +84,8 @@ namespace epee
|
||||
|
||||
boost::mutex &mlocker::mutex()
|
||||
{
|
||||
static boost::mutex vmutex;
|
||||
return vmutex;
|
||||
static boost::mutex *vmutex = new boost::mutex();
|
||||
return *vmutex;
|
||||
}
|
||||
std::map<size_t, unsigned int> &mlocker::map()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user