Revert previous change, causing instability.

svn path=/trunk/netsurf/; revision=9649
This commit is contained in:
Chris Young 2009-10-16 19:49:56 +00:00
parent 4059d2b096
commit 9f6a4d9745
2 changed files with 3 additions and 3 deletions

View File

@ -1537,7 +1537,7 @@ void ami_get_msg(void)
}
else if(signal & schedulesig)
{
timermsg = (struct TimeRequest *)GetMsg(msgport);
while(GetMsg(msgport));
//schedule_run();
}
}

View File

@ -62,7 +62,7 @@ void schedule(int t, void (*callback)(void *p), void *p)
GetSysTime(&tv);
AddTime(&nscb->tv,&tv); // now contains time when event occurs
#ifdef AMI_SCHEDULER_USES_TIMER
if(nscb->treq = AllocVec(sizeof(struct TimeRequest),MEMF_PRIVATE | MEMF_CLEAR))
{
*nscb->treq = *tioreq;
@ -71,7 +71,7 @@ void schedule(int t, void (*callback)(void *p), void *p)
nscb->treq->Time.Microseconds=nscb->tv.Microseconds; // micro
SendIO((struct IORequest *)nscb->treq);
}
#endif
nscb->callback = callback;
nscb->p = p;
}