Make block_with_timeout more robust (#11670)
The previous implementation relied on a background thread to wake up the main thread, which was prone to priority inversion under heavy load. In a synthetic test, where we spawn 200 git processes while doing a 5ms timeout, the old version blocked for 5-80ms, the new version blocks for 5.1-5.4ms. Release Notes: - Improved responsiveness of the main thread under high system load
C
Conrad Irwin committed
c73d6502d6199ba5d9ddc2b9986fb88f4eee6c92
Parent: b34ab6f
Committed by GitHub <noreply@github.com>
on 5/10/2024, 7:10:02 PM