aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/thread.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-06-09 22:33:57 +0000
committerChristopher Faylor <me@cgf.cx>2005-06-09 22:33:57 +0000
commit9a9177720555953b8761b8f22ef7f5566db0955f (patch)
treefcbbb366a27fce1bba7d724b265bb3df91970f21 /winsup/cygwin/thread.cc
parentfa0dcd0d650d47e33d3301f107580bbf3e7afa69 (diff)
downloadnewlib-9a9177720555953b8761b8f22ef7f5566db0955f.zip
newlib-9a9177720555953b8761b8f22ef7f5566db0955f.tar.gz
newlib-9a9177720555953b8761b8f22ef7f5566db0955f.tar.bz2
* cygtls.h (_local_storage::setmode_file): New element.
(_local_storage::setmode_mode): New element. * tlsoffsets.h: Regenerate. * cygwin.din (setmode): Define as cygwin_getmode. * syscalls.cc (setmode_helper): Use setmode_* variables from tls rather than using unthreadsafe static. (setmode): Break out fwalk stuff. (cygwin_setmode): New function. Put fwalk stdio stuff here.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index f1714d2..f258784 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1756,8 +1756,7 @@ int
semaphore::_trywait ()
{
/* FIXME: signals should be able to interrupt semaphores...
- *We probably need WaitForMultipleObjects here.
- */
+ We probably need WaitForMultipleObjects here. */
if (WaitForSingleObject (win32_obj_id, 0) == WAIT_TIMEOUT)
{
set_errno (EAGAIN);