Add writer priority mode in TimedRWMutex
Summary: - The current TimedRwMutex behavior is biased heavily towards readers. This can lead to writer starvation under heavy read load which can result in writers unable to acquire the lock for several minutes - The current change adds a writer priority mode to TimedRWMutex which can be specified at creation time. The default behavior will still be reader priority and since the logic is handled through templates it shouldn't introduce any side effects for the reader priority behavior Reviewed By: matheweis Differential Revision: D15204620 fbshipit-source-id: e940868aa9cec8f4a0a6b59c695ed3beca11c11a
Showing
Please register or sign in to comment