From 6b2a9a2fdf2a62475c7bb7ff3ef49eee5b82fa6e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 2 Aug 2002 02:10:24 +0000 Subject: * cygthread.cc (cygthread::exit_thread): Define new method. * cygthread.h (cygthread::exit_thread): Declare new method. * fhandler.h (fhandler_tty_master::hThread): Delete. (fhandler_tty_master::output_thread): Define. * fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Adjust constructor. (fhandler_tty_master::init): Use cygthread rather than handle. (process_output): Use cygthread method to exit. (fhandler_tty_master::fixup_after_fork): Set output_thread to NULL after fork. (fhandler_tty_master::fixup_after_exec): Set output_thread to NULL after spawn/exec. * tty.cc (tty_list::terminate): Detach from output_thread using cygthread method. --- winsup/cygwin/cygthread.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'winsup/cygwin/cygthread.cc') diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index 66abb7408..a4f32472d 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -147,6 +147,13 @@ HANDLE () return ev; } +void +cygthread::exit_thread () +{ + SetEvent (ev); + ExitThread (0); +} + void cygthread::detach () { -- cgit v1.2.3