aboutsummaryrefslogtreecommitdiff
path: root/include/gcc-c-interface.h
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2024-12-12 15:03:39 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2024-12-12 21:38:20 +0900
commit1d1451ccd2a6c0f0146ddee68f386061b69863c0 (patch)
treef24a8a4a8c68343cc2963e0b871da2ea4ad8234a /include/gcc-c-interface.h
parent06952f41ff4897c615fa838c5daf571aacb55d0f (diff)
downloadnewlib-1d1451ccd2a6c0f0146ddee68f386061b69863c0.zip
newlib-1d1451ccd2a6c0f0146ddee68f386061b69863c0.tar.gz
newlib-1d1451ccd2a6c0f0146ddee68f386061b69863c0.tar.bz2
Cygwin: signal: Fix high load when retrying to process pending signal
The commit e10f822a2b39 has a problem that CPU load gets high if pending signal is not processed successfully for a long time. With this patch, wait_sig() calls Sleep(1), rather than yield(), if the pending signal has not been processed successfully for a predetermined time to prevent CPU from high load. Addresses: https://cygwin.com/pipermail/cygwin/2024-December/256884.html Fixes: e10f822a2b39 ("Cygwin: signal: Handle queued signal without explicit __SIGFLUSH") Reported-by: 凯夏 <walkerxk@gmail.com> Reviewed-by: Corinna Vinschen <corinna@vinschen.de> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'include/gcc-c-interface.h')
0 files changed, 0 insertions, 0 deletions