]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygthread.cc (cygthread::detach): Just test thread handle after
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 8 Feb 2005 16:56:02 +0000 (16:56 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 8 Feb 2005 16:56:02 +0000 (16:56 +0000)
signal arrived, don't wait infinitely for it.

winsup/cygwin/ChangeLog
winsup/cygwin/cygthread.cc

index 4bfe15e86090863cce4f9ab1082caa639b51d2b7..c0bf1ff37659a33e8d184153c5792134c1a53016 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-08  Corinna Vinschen  <corinna@vinschen.de>
+
+       * cygthread.cc (cygthread::detach): Just test thread handle after
+       signal arrived, don't wait infinitely for it.
+
 2005-02-08  Christopher Faylor  <cgf@timesys.com>
 
        * pipe.cc (fhandler_pipe::read): Remove hold over from old read_state
index c6ae0249ce57ee29daa1ff0abcba392baa7e0052..4c14f195467ee94a6850777df2d3ccb078f36e79 100644 (file)
@@ -333,7 +333,7 @@ cygthread::detach (HANDLE sigwait)
            signalled = false;
          else if (res != WAIT_OBJECT_0 + 1)
            api_fatal ("WFMO failed waiting for cygthread '%s'", __name);
-         else if ((res = WaitForSingleObject (*this, INFINITE)) == WAIT_OBJECT_0)
+         else if ((res = WaitForSingleObject (*this, 0)) == WAIT_OBJECT_0)
            signalled = false;
          else
            {
This page took 0.02841 seconds and 5 git commands to generate.