aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_console.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-16 04:18:50 +0000
committerChristopher Faylor <me@cgf.cx>2004-05-16 04:18:50 +0000
commit0c565ab35b47c29c0d5ba7a6e28ca63535776ce8 (patch)
tree3c5c40d2bb4eb150ee58f043bbec30d1032c2a74 /winsup/cygwin/fhandler_console.cc
parentaafd8a545f7d9089d47ac28d890840f22dac6df4 (diff)
downloadnewlib-0c565ab35b47c29c0d5ba7a6e28ca63535776ce8.zip
newlib-0c565ab35b47c29c0d5ba7a6e28ca63535776ce8.tar.gz
newlib-0c565ab35b47c29c0d5ba7a6e28ca63535776ce8.tar.bz2
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 640db21..616090d 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -29,6 +29,7 @@ details. */
#include "pinfo.h"
#include "shared_info.h"
#include "cygthread.h"
+#include "cygtls.h"
#define CONVERT_LIMIT 16384
@@ -250,7 +251,7 @@ fhandler_console::read (void *pv, size_t& buflen)
char tmp[60];
w4[0] = h;
- if (cygthread::is ())
+ if (&_my_tls != _main_tls)
nwait = 1;
else
{