Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't suspend schedulers if terminating and reset steal_attempts on w…
…ake (#2447) Prior to this commit, a scheduler thread could potentially suspend even if it was supposed to be terminating. This commit makes it so that it only goes down the suspend path if the thread is not terminating. Additionally, we now set `steal_attempts = 0` on waking from a suspend to ensure that the scheduler thread will try to steal from all other threads prior to suspending again.
- Loading branch information