-
Type:
Improvement
-
Resolution: Won't Do
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
DevProd Build
-
None
-
None
-
None
-
None
-
None
-
None
-
None
WriteRarelyRWMutexTest currently takes around 300 seconds to execute, which seems to be caused by the executing thread almost always re-acquiring the lock after finishing each loop. This starves out all other threads.
Based on the documentation, rwmutex doesn't have any fairness mechanism, so this behavior makes sense.
Add a yield to prevent each thread from re-acquiring the lock repeatedly.