summaryrefslogtreecommitdiff
path: root/amiga/schedule.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-11-17 23:47:28 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-11-17 23:47:28 +0000
commitcfc9971d0e5aa42bc384b65e8f368e12526c289c (patch)
tree697bd67d5ee9a7d0d9c5996e7a65ab6e187cbd4d /amiga/schedule.c
parentd4c7a0ff77588e3d493e6e6e3449ffd4d7436c02 (diff)
downloadnetsurf-cfc9971d0e5aa42bc384b65e8f368e12526c289c.tar.gz
netsurf-cfc9971d0e5aa42bc384b65e8f368e12526c289c.tar.bz2
Remove no longer used poll option from schedule runner
Diffstat (limited to 'amiga/schedule.c')
-rwxr-xr-xamiga/schedule.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/amiga/schedule.c b/amiga/schedule.c
index 7b54dc8f3..6f2037d7e 100755
--- a/amiga/schedule.c
+++ b/amiga/schedule.c
@@ -37,7 +37,7 @@ struct nscallback
struct TimeRequest *treq;
};
-PblHeap *schedule_list;
+static PblHeap *schedule_list;
/**
* Remove timer event
@@ -202,27 +202,15 @@ static int ami_schedule_compare(const void *prev, const void *next)
/* exported function documented in amiga/schedule.h */
-void schedule_run(BOOL poll)
+void schedule_run(void)
{
struct nscallback *nscb;
void (*callback)(void *p);
void *p;
- struct TimeVal tv;
nscb = pblHeapGetFirst(schedule_list);
-
if(nscb == -1) return;
- if(poll) {
- /* Ensure the scheduled event time has passed (CmpTime<=0)
- * For timer signalled events this must *always* be true,
- * so we save some time by only checking if we're polling.
- */
-
- GetSysTime(&tv);
- if(CmpTime(&tv, &nscb->tv) > 0) return;
- }
-
callback = nscb->callback;
p = nscb->p;
ami_schedule_remove_timer_event(nscb);