diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-11 22:33:55 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-11 22:33:55 +0000 |
commit | cbf07e1bc3e11d7cce4769782f2acf76e47f6947 (patch) | |
tree | ee2324cd5f48de505ab2a9a172ae984ace0f653b /amiga | |
parent | 5060882795b3534bca9b20dc11476027f15f1f6f (diff) | |
download | netsurf-cbf07e1bc3e11d7cce4769782f2acf76e47f6947.tar.gz netsurf-cbf07e1bc3e11d7cce4769782f2acf76e47f6947.tar.bz2 |
make schedule_run return if it has active jobs to schedule
svn path=/trunk/netsurf/; revision=6447
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/schedule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/amiga/schedule.c b/amiga/schedule.c index 008bf4d01..8ec7b3da0 100755 --- a/amiga/schedule.c +++ b/amiga/schedule.c @@ -115,7 +115,7 @@ void schedule_remove(void (*callback)(void *p), void *p) * Process events up to current time. */ -void schedule_run(void) +bool schedule_run(void) { struct nsObject *node; struct nsObject *nnode; @@ -124,7 +124,7 @@ void schedule_run(void) void *p; struct timeval tv; - if(IsMinListEmpty(schedule_list)) return; + if(IsMinListEmpty(schedule_list)) return false; GetSysTime(&tv); @@ -148,6 +148,8 @@ void schedule_run(void) } } } while(node=nnode); + + return true; } void ami_remove_timer_event(struct nscallback *nscb) |