Comment on In the C++ bag of tricks: scoped locksComments−zeroonetwothree12yfolly::Synchronized implements this in a correct way (and also prevents access without acquiring the lock):SYNCHRONIZED(data) { // modify data }https://github.com/facebook/folly/blob/master/folly/Synchron...
Comments
folly::Synchronized implements this in a correct way (and also prevents access without acquiring the lock):
SYNCHRONIZED(data) { // modify data }
https://github.com/facebook/folly/blob/master/folly/Synchron...