Cygwin: console, pty: Revamp the acquire/release_attach_mutex timing.
commit5f4e7b0368940682706916fec6d22befd4e82703
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 2 Mar 2022 07:00:31 +0000 (2 16:00 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Wed, 2 Mar 2022 10:20:48 +0000 (2 19:20 +0900)
tree7ac1a7d4c6c0f5d64d43cecddc70b88dcd5adbaf
parent42e23c5ad2641945097699e989427f0f88c7074b
Cygwin: console, pty: Revamp the acquire/release_attach_mutex timing.

- This patch revises the acquiring/releasing timing for attach_mutex
  to make the period in which it is being acquired shorter. Further,
  acquiring/releasing are added to where they are missing but needed.
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_console.cc
winsup/cygwin/fhandler_termios.cc
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/select.cc