mirror of
https://github.com/monero-project/monero.git
synced 2026-02-02 09:45:07 +01:00
std::condvar is broken on Win32 with gcc/g++ 4.8 too
Use boost...
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
using namespace epee;
|
||||
namespace bf = boost::filesystem;
|
||||
|
||||
static std::mutex instance_lock;
|
||||
static boost::mutex instance_lock;
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -304,7 +304,7 @@ std::string DNSResolver::get_dns_format_from_oa_address(const std::string& oa_ad
|
||||
|
||||
DNSResolver& DNSResolver::instance()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(instance_lock);
|
||||
boost::lock_guard<boost::mutex> lock(instance_lock);
|
||||
|
||||
static DNSResolver* staticInstance = NULL;
|
||||
if (staticInstance == NULL)
|
||||
|
||||
Reference in New Issue
Block a user