X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=465b5dd20dae93fc60a582ed407a7605cbcba488;hp=afb0324515b018815e7d84dd08faf10ab97a5dc7;hb=1dce23761237d85c2cfafd0757f1bef87b0087c4;hpb=82597c35e97568d9d53983211cdf29621cefdb51 diff --git a/src/util.cpp b/src/util.cpp index afb0324..465b5dd 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -24,7 +24,7 @@ #include /* for _commit */ #include "shlobj.h" #elif defined(__linux__) -# include +#include #endif #if !defined(WIN32) && !defined(ANDROID) @@ -209,9 +209,9 @@ inline int OutputDebugStringF(const char* pszFormat, ...) // Since the order of destruction of static/global objects is undefined, // allocate mutexDebugLog on the heap the first time this routine // is called to avoid crashes during shutdown. - static boost::mutex* mutexDebugLog = NULL; - if (mutexDebugLog == NULL) mutexDebugLog = new boost::mutex(); - boost::mutex::scoped_lock scoped_lock(*mutexDebugLog); + static std::mutex* mutexDebugLog = nullptr; + if (mutexDebugLog == nullptr) mutexDebugLog = new std::mutex(); + std::scoped_lock scoped_lock(*mutexDebugLog); // reopen the log file, if requested if (fReopenDebugLog) {