From b6bd703781fdbe466e5a4d41e16743a642e7c0d3 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 1 Aug 2002 16:20:31 +0000 Subject: * Makefile.in (DLL_OFILES): Add cygthread.o. * dcrt0.cc (dll_crt0_1): Eliminate various thread initialization functions in favor of new cygthread class. * debug.cc: Remove thread manipulation functions. * debug.h: Ditto. * external.cc (cygwin_internal): Use cygthread method for determining thread name. Remove capability for setting thread name. * fhandler_console.cc (fhandler_console::read): Use cygthread method rather than iscygthread function. * fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Use cygthread methods to create threads. (fhandler_tty_common::__acquire_output_mutex): Use cygthread method to retrieve thread name. * select.cc (pipeinf): Use cygthread pointer rather than handle. (start_thread_pipe): Ditto. (pipe_cleanup): Ditto. (serialinf): Ditto. (start_thread_serial): Ditto. (serial_cleanup): Ditto. (socketinf): Ditto. (start_thread_socket): Ditto. (socket_cleanup): Ditto. * sigproc.cc (hwait_sig): Ditto. (hwait_subproc): Ditto. (proc_terminate): Ditto. (sigproc_terminate): Ditto. (sigproc_init): Initialize cygthread hwait_sig pointer. (subproc_init): Initialize cygthread hwait_subproc pointer. (wait_sig): Rely on cygthread HANDLE operator. * strace.cc (strace::vsprntf): Use cygthread::name rather than threadname. * window.cc (gethwnd): Use cygthread method to initialize thread. --- winsup/cygwin/external.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/external.cc') diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 1dad1e70f..571ea6742 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -27,6 +27,7 @@ details. */ #include "cygheap.h" #include "wincap.h" #include "heap.h" +#include "cygthread.h" static external_pinfo * fillout_pinfo (pid_t pid, int winpid) @@ -145,13 +146,12 @@ cygwin_internal (cygwin_getinfo_types t, ...) return 1; case CW_GETTHREADNAME: - return (DWORD) threadname (va_arg (arg, DWORD)); + return (DWORD) cygthread::name (va_arg (arg, DWORD)); case CW_SETTHREADNAME: { - char *name = va_arg (arg, char *); - regthread (name, va_arg (arg, DWORD)); - return 1; + set_errno (ENOSYS); + return 0; } case CW_GETPINFO: -- cgit v1.2.3