add sched_yield in RWTicketSpinLock
Summary: This diff makes RWTicketSpinLock eventually start calling sched_yield() during shared and aggressive exclusive lock access, to avoid pathologies that can arise when the number of threads far exceeds the number of actual cores. Test Plan: 1. unit tests 2. benchmark w/o + w/ diff Reviewed By: nathan@fb.com FB internal diff: D524897
Showing
Please register or sign in to comment