From 0c565ab35b47c29c0d5ba7a6e28ca63535776ce8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 16 May 2004 04:18:50 +0000 Subject: * cygthread.cc (cygthread::is): Eliminate. * cygthread.h (cygthread::is): Eliminate declaratin. * fhandler_console.cc (fhandler_console::read): Only wait for signal_arrived in the main thread. * fhandler_socket.cc: Include new "wininfo.h". (fhandler_socket::ioctl): Use 'winmsg' rather than 'gethwnd()'. * sync.cc (muto::grab): Define new function. (muto::acquire): Use tls pointer rather than tid. (muto::acquired): Ditto. (muto::reset): Delete. (muto::release): Ditto. Also implement "close on last release". * sync.h (muto::tid): Delete. (muto::tls): New field. (muto::ismine): Delete. (muto::owner): Delete. (muto::unstable): Delete. (muto::reset): Delete. (muto::upforgrabs): New method. (muto::grab): Ditto. (new_muto_name): New define. * wininfo.h: New file. (wininfo): New class. * window.cc: Rework throughout to use winfo class for controlling invisible window operation. (gethwnd): Delete definition. * winsup.h (gethwnd): Delete declaration. --- winsup/cygwin/cygthread.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'winsup/cygwin/cygthread.cc') diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index d655640e0..7ad860b45 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -101,18 +101,6 @@ cygthread::init () main_thread_id = GetCurrentThreadId (); } -bool -cygthread::is () -{ - DWORD tid = GetCurrentThreadId (); - - for (DWORD i = 0; i < NTHREADS; i++) - if (threads[i].id == tid) - return 1; - - return 0; -} - cygthread * cygthread::freerange () { -- cgit v1.2.3