]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #1772 - RalfJung:less-timeout-checking, r=RalfJung
authorbors <bors@rust-lang.org>
Sun, 11 Apr 2021 14:59:27 +0000 (14:59 +0000)
committerbors <bors@rust-lang.org>
Sun, 11 Apr 2021 14:59:27 +0000 (14:59 +0000)
only check timeouts when a thread yields

Currently, we check for expired timeouts after each step of execution. That seems excessive. This changes the scheduler to only check for timeouts when the active thread cannot continue running any more.

`@vakaras` does this sound right? `pthread_cond_timedwait` anyway already yields, of course, since it blocks on getting the signal (or the timeout).

1  2 
src/thread.rs

diff --cc src/thread.rs
Simple merge