diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2012-02-17 09:40:00 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-02-17 09:40:00 -0500 |
commit | 6fb186f4bbeb34b4e5c22f909e8d0a1a877f1c44 (patch) | |
tree | d1d195d7941297367db84da93c259034123c0a88 /src/util.h | |
parent | fb811c31fd28d1d637a50f784af620d085fa32d4 (diff) | |
parent | fdb365df0e9bf1b3073ea38212664cb59863bbd0 (diff) | |
download | bitcoin-6fb186f4bbeb34b4e5c22f909e8d0a1a877f1c44.tar.xz |
Merge branch '0.5.0.x' into 0.5.x
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
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: |