Commit Graph

15 Commits

Author SHA1 Message Date
Chris Young
2de1553a00 New scheduler 2014-11-22 16:27:39 +00:00
Chris Young
f8d8d218d8 Initial steps for a scheduler process 2014-11-22 16:27:39 +00:00
Chris Young
cfc9971d0e Remove no longer used poll option from schedule runner 2014-11-17 23:47:28 +00:00
Chris Young
fb0af6f269 Call open/close timer from schedule init/free functions 2014-11-10 23:50:28 +00:00
Vincent Sanders
87f6314dab move scheduleing into browser operation table 2014-03-09 15:37:40 +00:00
Chris Young
2db0024651 document and add missing include 2013-04-04 19:59:35 +01:00
Chris Young
3123192dfc Move timer.device stuff to schedule.c
svn path=/trunk/netsurf/; revision=11712
2011-02-19 17:19:38 +00:00
Chris Young
6bced73998 Modify scheduler to use a binary heap (using libpbl).
Scheduled events are now in event time order, so schedule_run simply takes the top
event off the heap and runs it (if we're polling, rather than having received a signal
that the next event is due to be run, we check first that we have passed the scheduled
time).

This should provide performance benefits as we are no longer trawling the entire list
of scheduled events (potentially hundreds) every time an event is signalled or the
schedule list is polled.

svn path=/trunk/netsurf/; revision=11703
2011-02-16 21:29:39 +00:00
John Mark Bell
625b59f61a First pass of AmigaOS 3 compatibility
svn path=/trunk/netsurf/; revision=11155
2010-12-30 00:53:11 +00:00
Chris Young
4aa363eedc Change schedule_run to a BOOL as this more standard for platform code.
svn path=/trunk/netsurf/; revision=10516
2010-04-29 18:22:04 +00:00
Vincent Sanders
2fd1476f8c The schedule_run function is only called by the frontends so remove it from the core header and add its definition to the frontend headers.
Alter the framebuffer schedule_run to return the time untill the next event.


svn path=/trunk/netsurf/; revision=10512
2010-04-28 22:39:37 +00:00
Chris Young
4059d2b096 Fix-up the timer.device scheduler and reinstate it as default. Unfortunately this
doesn't remove the need for INTUITICKS messages as we still need to break out for page
reflow (which doesn't use the scheduler), but it should make animations more accurate.

svn path=/trunk/netsurf/; revision=9648
2009-10-15 21:35:29 +00:00
Chris Young
5bff3e3287 Update for new SDK
svn path=/trunk/netsurf/; revision=5915
2008-12-20 10:54:59 +00:00
Chris Young
9fc58606db Scheduled events now signal when the scheduled time has passed.
The timer appears to stop signalling events occasionally - needs some investigation.

svn path=/trunk/netsurf/; revision=5287
2008-09-08 18:14:14 +00:00
Chris Young
d1c876e03c Fully implemented schedule, schedule_run and schedule_remove.
svn path=/trunk/netsurf/; revision=4875
2008-08-03 16:10:10 +00:00