* 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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user