diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-06-06 16:18:53 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-06 16:18:53 +0200 |
commit | 83834110a0279c228c5c7e232a5d7ce01dd04d3e (patch) | |
tree | 20c41a1fc5d721ebe45c0255fe83a989ca9a2458 /newlib/libc/include/stdlib.h | |
parent | 7239bb7b3ded5ab961dc56dc346d8ab83660ba29 (diff) | |
download | cygnal-83834110a0279c228c5c7e232a5d7ce01dd04d3e.tar.gz cygnal-83834110a0279c228c5c7e232a5d7ce01dd04d3e.tar.bz2 cygnal-83834110a0279c228c5c7e232a5d7ce01dd04d3e.zip |
Fix condition in select which results in busy loop.
The check for current timestamp > start timestamp has an unwelcome
side effect: The loop is not left as long as the current timestamp
hasn't been incremented. This leads to busy loops of about one tick
(10 to 16 ms per MSDN).
This fixes https://cygwin.com/ml/cygwin/2016-05/msg00327.html
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/stdlib.h')
0 files changed, 0 insertions, 0 deletions