Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-09-01 22:24:11 +0400
committerChristopher Faylor <me@cgf.cx>2010-09-01 22:24:11 +0400
commitb9874a0c1409a238de44a2413b8a82875fd68084 (patch)
treeed19075870bced5696f7d7ed1456a784d1ba6a3b /winsup/cygwin/fhandler_tty.cc
parent20973ec94886bf3b465f94430ea3d45eaaaf43a3 (diff)
* cygthread.cc (cygthread::create): Fix incorrect use of name rather than
__name. * cygthread.h (cygthread::cygthread): Create versions which eliminate 'n' parameter. * dcrt0.cc (dll_crt0_1): Remove check for threadfunc_ix. Remove obsolete comments. Set process_state to active here. * fhandler_netdrive.cc (create_thread_and_wait): Use shortened cygthread constructor. * timer.cc (timer_tracker::settime): Ditto. * window.cc (HWND): Ditto. * fhandler_tty.cc: Use shortened cygthread constructor, where appropriate, throughout. * select.cc: Ditto. * fork.cc (frok::child): Remove wait_for_sigthread. (fork): Reformat if for slightly better clarity. * init.cc (dll_finished_loading): New variable. (dll_entry): Use dll_finished_loading to determine when we should call merge_threadfunc. * sigproc.cc (no_signals_available): Simplify by using my_readsig. (wait_sig_inited): Delete. (wait_sig): Define as void function. (pending_signals): Accommodate change to wait_sig definition. (wait_for_sigthread): Delete definition. (sigproc_init): Initialize signal pipe here, before wait_sig thread is created. Use void form of cygthread creation. (init_sig_pipe): Delete. (wait_sig): Return void rather than DWORD. Assume previous initialization of signal pipe. Set my_sendsig to NULL when exiting. * sigproc.h (wait_for_sigthread): Delete declaration.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 1d44f3280..45ab24bcb 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -89,9 +89,9 @@ fhandler_tty_master::init ()
set_close_on_exec (true);
- new cygthread (process_input, 0, cygself, "ttyin");
- new cygthread (process_ioctl, 0, cygself, "ttyioctl");
- new cygthread (process_output, 0, cygself, "ttyout");
+ new cygthread (process_input, cygself, "ttyin");
+ new cygthread (process_ioctl, cygself, "ttyioctl");
+ new cygthread (process_output, cygself, "ttyout");
return 0;
}
@@ -1805,7 +1805,7 @@ fhandler_pty_master::setup (bool ispty)
errstr = "pty master control pipe";
goto err;
}
- master_thread = new cygthread (::pty_master_thread, 0, this, "pty_master");
+ master_thread = new cygthread (::pty_master_thread, this, "pty_master");
if (!master_thread)
{
errstr = "pty master control thread";