diff options
author | Howard Chu <hyc@symas.com> | 2016-01-26 22:09:08 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-02-18 21:31:21 +0000 |
commit | 014f8868f215175fc8db41f79d57588db9ea1d4d (patch) | |
tree | 06c8c0e9c1dfe3fa4143bb402d0e41d6ced86fa1 /src/common | |
parent | Use boost::thread instead of std::thread (diff) | |
download | monero-014f8868f215175fc8db41f79d57588db9ea1d4d.tar.xz |
std::condvar is broken on Win32 with gcc/g++ 4.8 too
Use boost...
Diffstat (limited to '')
-rw-r--r-- | src/common/dns_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp index eb7b6608b..eb0a7de1f 100644 --- a/src/common/dns_utils.cpp +++ b/src/common/dns_utils.cpp @@ -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) |