mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-19 01:02:32 +03:00
gtk, beos: Run scheduler before fetching fdset
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
4421d1bab6
commit
6bbdf08cb0
@ -750,12 +750,12 @@ void nsbeos_gui_poll(void)
|
||||
unsigned int fd_count = 0;
|
||||
bigtime_t next_schedule = 0;
|
||||
|
||||
/* get any active fetcher fd */
|
||||
fetch_fdset(&read_fd_set, &write_fd_set, &exc_fd_set, &max_fd);
|
||||
|
||||
/* run the scheduler */
|
||||
schedule_run();
|
||||
|
||||
/* get any active fetcher fd */
|
||||
fetch_fdset(&read_fd_set, &write_fd_set, &exc_fd_set, &max_fd);
|
||||
|
||||
// our own event pipe
|
||||
FD_SET(sEventPipe[0], &read_fd_set);
|
||||
|
||||
|
@ -398,6 +398,8 @@ static void nsgtk_main(void)
|
||||
FD_ZERO(&write_fd_set);
|
||||
FD_ZERO(&exc_fd_set);
|
||||
|
||||
schedule_run();
|
||||
|
||||
fetch_fdset(&read_fd_set, &write_fd_set, &exc_fd_set, &max_fd);
|
||||
for (int i = 0; i <= max_fd; i++) {
|
||||
if (FD_ISSET(i, &read_fd_set)) {
|
||||
@ -423,8 +425,6 @@ static void nsgtk_main(void)
|
||||
}
|
||||
}
|
||||
|
||||
schedule_run();
|
||||
|
||||
gtk_main_iteration();
|
||||
|
||||
for (unsigned int i = 0; i != fd_count; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user