* cygthread.cc (cygthread::detach): Just test thread handle after
signal arrived, don't wait infinitely for it.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
| 	    { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user