ywkaras commented on pull request #7330: URL: https://github.com/apache/trafficserver/pull/7330#issuecomment-773449672
Note that this video, https://youtu.be/ZQFzMfHIxng , reports good performance using spinlocks. This class is basically a spinlock. It has yields to handle the fact the thread currently holding the mutex may get preempted. It has (micro-)sleeps to handle the possibility that the thread holding the lock gets preempted and has a lower scheduling priority than a thread waiting on the mutex. I think currently all our threads have the same priority, so the sleeps may only be for future safety. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
