(no title)
ot | 5 days ago
One example is folly::SharedMutex, which is very battle-tested: https://uvdn7.github.io/shared-mutex/
There are more sophisticated techniques such as RCU or hazard pointers that make synchronization overhead almost negligible for readers, but they generally require to design the algorithms around them and are not drop-in replacements for a simple mutex, so a good RW mutex implementation is a reasonable default.
PaulHoule|5 days ago
Jyaif|4 days ago
amluto|4 days ago
mike_hearn|5 days ago