mirror of
https://github.com/monero-project/monero.git
synced 2025-05-12 09:32:14 -04:00
std::condvar is broken on Win32 with gcc/g++ 4.8 too
Use boost...
This commit is contained in:
parent
7c86c5997d
commit
014f8868f2
2 changed files with 6 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue