4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-15 13:39:26 +08:00
Takashi Yano f3a9f181b1 Cygwin: signal: Avoid frequent TLS lock/unlock for SIGCONT processing
It seems that current _cygtls::handle_SIGCONT() code sometimes falls
into a deadlock due to frequent TLS lock/unlock operation in the
yield() loop. With this patch, the yield() in the wait loop is placed
outside the TLS lock to avoid frequent TLS lock/unlock.

Fixes: 9ae51bcc51a7 ("Cygwin: signal: Fix another deadlock between main and sig thread")
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2025-01-22 19:18:41 +09:00
..
2022-08-22 14:53:30 +02:00
2023-11-05 17:01:43 +01:00
2022-08-19 15:51:49 +02:00
2022-10-28 16:26:53 +02:00