Enhance spin_adaptive() to yield after several iterations.
This avoids worst case behavior if e.g. another thread is preempted while owning the resource the spinning thread is waiting for.
Please register or sign in to comment
This avoids worst case behavior if e.g. another thread is preempted while owning the resource the spinning thread is waiting for.