Remove no longer used poll option from schedule runner
This commit is contained in:
parent
d4c7a0ff77
commit
cfc9971d0e
|
@ -2745,7 +2745,7 @@ void ami_get_msg(void)
|
|||
if(signal & schedulesig) {
|
||||
if((timermsg = (struct TimerRequest *)GetMsg(msgport))) {
|
||||
ReplyMsg((struct Message *)timermsg);
|
||||
schedule_run(FALSE);
|
||||
schedule_run();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -60,6 +60,7 @@ void ami_schedule_free(void);
|
|||
* venture to later scheduled events until the next time it is called -
|
||||
* immediately afterwards, if we're in a timer signalled loop.
|
||||
*/
|
||||
void schedule_run(BOOL poll);
|
||||
void schedule_run(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue