Add folly::synchronized
Summary: Some people said the read-lock-when-const behavior of the `SYNCHRONIZED` macro was desirable, so instead of codemodding the `SYNCHRONIZED` macros out of existence in favor of `withRLock`, `withWLock` and `withLock`, add a generalization of the `SYNCHRONIZED()` macros, so they can be removed in favor of this, which has identical behavior while being more general. Reviewed By: yfeldblum Differential Revision: D8248203 fbshipit-source-id: eb3c1444182e42bea79a377a66606d91a6e517bd
Showing
This diff is collapsed.
Please register or sign in to comment