mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37:00 +02:00
We need to be able to guarantee that a timer won't be executing after TimerQueue::cancel_timer returns. In the case of multiple processors this means that we may need to wait while the timer handler finishes execution on another core. This also fixes a problem in Thread::block and Thread::wait_on where theoretically the timer could execute after the function returned and the Thread disappeared.
8.3 KiB
8.3 KiB