STR #1151: Cygwin for some reason was ifdef'd out for setting a shorter timout when reading fd's (yes, the Win32 requires polling to read fd's). Adding the shorter timeout has no impact on Apps that do not poll fd's, but should fix most (all?) problems described in this bug report.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2006-08-30 09:18:12 +00:00
parent 40846ea887
commit 3303d9d7f5
2 changed files with 1 additions and 4 deletions
+1
View File
@@ -1,5 +1,6 @@
CHANGES IN FLTK 1.1.8 CHANGES IN FLTK 1.1.8
- Fixed Cygwin timeout for "select" calls (STR #1151)
- Improved Mac OS X subwindow handling (STR #1402) - Improved Mac OS X subwindow handling (STR #1402)
- Fixed more inconsistencies between fl_draw - Fixed more inconsistencies between fl_draw
and fl_measure (STR #1408) and fl_measure (STR #1408)
-4
View File
@@ -247,14 +247,10 @@ int fl_wait(double time_to_wait) {
if (fd[i].events & revents) fd[i].cb(f, fd[i].arg); if (fd[i].events & revents) fd[i].cb(f, fd[i].arg);
} }
time_to_wait = 0.0; // just peek for any messages time_to_wait = 0.0; // just peek for any messages
#ifdef __CYGWIN__
}
#else
} else { } else {
// we need to check them periodically, so set a short timeout: // we need to check them periodically, so set a short timeout:
if (time_to_wait > .001) time_to_wait = .001; if (time_to_wait > .001) time_to_wait = .001;
} }
#endif
} }
#endif // USE_ASYNC_SELECT #endif // USE_ASYNC_SELECT