aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-01-01 17:12:30 -0500
committerGavin Andresen <[email protected]>2013-01-01 17:12:30 -0500
commitee3374234c60aba2cc4c5cd5cac1c0aefc2d817c (patch)
treedac48288a89b711ddde40e17a7d8545bfd044bc9 /src/util.h
parentRemove 'T' from remaining date/time format strings. (diff)
downloaddiscoin-ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c.tar.xz
discoin-ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c.zip
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 8bea0dd2b..97911d749 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();