3 ms·
folly::Synchronized implements this in a correct way (and also prevents access without acquiring the lock): SYNCHRONIZED(data) { // modify data } https://gi
by zeroonetwothree 13y ago
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/Synchronized.h https://github.com/facebook/folly/blob/master/folly/Synchron...