git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Use scoped locks instead of CRITICAL_BLOCK
[novacoin.git]
/
src
/
util.cpp
diff --git
a/src/util.cpp
b/src/util.cpp
index
d55e7ae
..
fd4847b
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-195,8
+195,8
@@
inline int OutputDebugStringF(const char* pszFormat, ...)
static CCriticalSection cs_OutputDebugStringF;
// accumulate a line at a time
- CRITICAL_BLOCK(cs_OutputDebugStringF)
{
+ LOCK(cs_OutputDebugStringF);
static char pszBuffer[50000];
static char* pend;
if (pend == NULL)