diff options
author | Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk> | 2012-11-15 22:34:42 +0100 |
---|---|---|
committer | François Revol <revol@free.fr> | 2012-11-24 21:39:40 +0100 |
commit | eb28188661262eef8aad4b530a3f16532aceffd4 (patch) | |
tree | f53b6050ecbb4cada42468ec4949d0e356c29fb8 /beos/schedule.cpp | |
parent | ec43456e4bf0968bc68b437733199ad2af609c1e (diff) | |
download | netsurf-eb28188661262eef8aad4b530a3f16532aceffd4.tar.gz netsurf-eb28188661262eef8aad4b530a3f16532aceffd4.tar.bz2 |
Update the BeOS/Haiku port
* Toolbar use HVIF icons on Haiku
* Download window
* Some tweaks to the event loop to let network traffic happen
Signed-off-by: François Revol <revol@free.fr>
Diffstat (limited to 'beos/schedule.cpp')
-rw-r--r-- | beos/schedule.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/beos/schedule.cpp b/beos/schedule.cpp index 3f822352a..db0992e63 100644 --- a/beos/schedule.cpp +++ b/beos/schedule.cpp @@ -95,8 +95,9 @@ schedule(int t, void (*callback)(void *p), void *p) cb->context = p; cb->callback_killed = cb->callback_fired = false; cb->timeout = timeout; - if (earliest_callback_timeout > timeout) + if (earliest_callback_timeout > timeout) { earliest_callback_timeout = timeout; + } callbacks->AddItem(cb); } @@ -104,11 +105,12 @@ bool schedule_run(void) { LOG(("schedule_run()")); + + earliest_callback_timeout = B_INFINITE_TIMEOUT; if (callbacks == NULL) return false; /* Nothing to do */ bigtime_t now = system_time(); - earliest_callback_timeout = B_INFINITE_TIMEOUT; int32 i; LOG(("Checking %ld callbacks to for deadline.", this_run->CountItems())); |