aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-01-01 17:12:30 -0500
committerGavin Andresen <gavinandresen@gmail.com>2013-01-01 17:12:30 -0500
commitee3374234c60aba2cc4c5cd5cac1c0aefc2d817c (patch)
treedac48288a89b711ddde40e17a7d8545bfd044bc9 /src/util.h
parent3f964b3c5085261ee636834f9bfadf7ab5a722c6 (diff)
downloadbitcoin-ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c.tar.xz
OutputDebugStringF code cleanup
Initialize the OutputDebugStringF mutex and file pointer using boost::call_once, to be thread-safe. Make the return value of OutputDebugStringF really be the number of characters written (*printf() semantics). Declare the fReopenDebugLog flag volatile, since it is changed from a signal handler. And don't declare OutputDebugStringF() as inline.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 8bea0dd2b3..97911d7493 100644
--- a/src/util.h
+++ b/src/util.h
@@ -138,7 +138,7 @@ extern std::string strMiscWarning;
extern bool fTestNet;
extern bool fNoListen;
extern bool fLogTimestamps;
-extern bool fReopenDebugLog;
+extern volatile bool fReopenDebugLog;
void RandAddSeed();
void RandAddSeedPerfmon();