aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-02-17 09:40:00 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2012-02-17 09:40:00 -0500
commit6fb186f4bbeb34b4e5c22f909e8d0a1a877f1c44 (patch)
treed1d195d7941297367db84da93c259034123c0a88 /src/util.h
parentfb811c31fd28d1d637a50f784af620d085fa32d4 (diff)
parentfdb365df0e9bf1b3073ea38212664cb59863bbd0 (diff)
downloadbitcoin-6fb186f4bbeb34b4e5c22f909e8d0a1a877f1c44.tar.xz
Merge branch '0.5.0.x' into 0.5.x
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index df093108ee..15a45ba7d7 100644
--- a/src/util.h
+++ b/src/util.h
@@ -258,6 +258,12 @@ public:
#define CRITICAL_BLOCK(cs) \
if (CCriticalBlock criticalblock = CCriticalBlock(cs, #cs, __FILE__, __LINE__))
+#define ENTER_CRITICAL_SECTION(cs) \
+ (cs).Enter(#cs, __FILE__, __LINE__)
+
+#define LEAVE_CRITICAL_SECTION(cs) \
+ (cs).Leave()
+
class CTryCriticalBlock
{
protected: