1
0
Fork 0
forked from lthn/blockchain

CIRITCAL_OPERATION macro compatible with *nix

This commit is contained in:
cryptozoidberg 2019-12-03 04:30:40 +01:00
parent 7d4f95ca53
commit 98636c52a1
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -699,7 +699,7 @@ namespace epee
#define CRITICAL_REGION_END() }
#define CIRITCAL_OPERATION(obj,op) {obj##_lock.lock();obj## . ##op;obj##_lock.unlock();}
#define CIRITCAL_OPERATION(obj,op) {obj##_lock.lock();obj . op;obj##_lock.unlock();}
#define SHARED_CRITICAL_REGION_LOCAL(x) boost::shared_lock< boost::shared_mutex > critical_region_var(x)
#define EXCLUSIVE_CRITICAL_REGION_LOCAL(x) boost::unique_lock< boost::shared_mutex > critical_region_var(x)