Add yield to WriteRarelyRWMutexTest test to simulate fairness

XMLWordPrintableJSON

    • 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. 

            Assignee:
            Zack Winter
            Reporter:
            Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: