summaryrefslogtreecommitdiff
path: root/amiga/schedule.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid crashing on NULL schedule_listChris Young2011-03-131-0/+2
| | | | svn path=/trunk/netsurf/; revision=12040
* Move schedule.h to utils/John Mark Bell2011-03-131-1/+1
| | | | svn path=/trunk/netsurf/; revision=12039
* Don't crash if removing events when we have no listChris Young2011-03-131-0/+2
| | | | svn path=/trunk/netsurf/; revision=12035
* Empty the schedule list before freeing and closing resourcesChris Young2011-03-131-1/+21
| | | | svn path=/trunk/netsurf/; revision=12034
* Add missing includes; Don't mix TimeVal definitionsChris Young2011-03-131-2/+5
| | | | svn path=/trunk/netsurf/; revision=12032
* Shunt the schedule function definitions to desktop/schedule.h. Shunt the ↵Daniel Silverstone2011-03-131-1/+1
| | | | | | hlcache/llcache to using schedule to get their cleanups run. svn path=/trunk/netsurf/; revision=12029
* Less ridiculous time calculationChris Young2011-02-261-7/+4
| | | | svn path=/trunk/netsurf/; revision=11826
* Move timer.device stuff to schedule.cChris Young2011-02-191-1/+31
| | | | svn path=/trunk/netsurf/; revision=11712
* Modify scheduler to use a binary heap (using libpbl).Chris Young2011-02-161-54/+75
| | | | | | | | | | | | | 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
* Fix some long-standing issues with events not getting captured, make sure theChris Young2011-02-091-5/+4
| | | | | | timer.device version of the scheduler is working and make it the default. svn path=/trunk/netsurf/; revision=11637
* First pass of AmigaOS 3 compatibilityJohn Mark Bell2010-12-301-0/+1
| | | | svn path=/trunk/netsurf/; revision=11155
* Change schedule_run to a BOOL as this more standard for platform code.Chris Young2010-04-291-1/+1
| | | | svn path=/trunk/netsurf/; revision=10516
* Ensure ami_remove_timer_event code doesn't get executed unless necessary.Chris Young2010-04-281-0/+2
| | | | svn path=/trunk/netsurf/; revision=10509
* Revert previous change, causing instability.Chris Young2009-10-161-2/+2
| | | | svn path=/trunk/netsurf/; revision=9649
* Fix-up the timer.device scheduler and reinstate it as default. ↵Chris Young2009-10-151-4/+4
| | | | | | | | | 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
* make schedule_run return if it has active jobs to scheduleVincent Sanders2009-02-111-2/+4
| | | | svn path=/trunk/netsurf/; revision=6447
* Update for new SDKChris Young2008-12-201-8/+8
| | | | svn path=/trunk/netsurf/; revision=5915
* Minor fixes, changing some defaults to safer values, screen_modeid should ↵Chris Young2008-11-031-3/+5
| | | | | | | | | | now work. Added screen_depth to stop it complaining when trying to BestModeID() a 32-bit screen on a system that doesn't have one. svn path=/trunk/netsurf/; revision=5650
* Change memory allocations to MEMF_PRIVATE to enable paging on OS4.1.Chris Young2008-11-021-6/+5
| | | | svn path=/trunk/netsurf/; revision=5649
* List traversing tidy-up.Chris Young2008-10-061-10/+10
| | | | svn path=/trunk/netsurf/; revision=5499
* Disabled the new scheduler by default as it is more unstable than I thought :(Chris Young2008-09-091-10/+18
| | | | | | Defining AMI_SCHEDULER_USES_TIMER will enable it again. svn path=/trunk/netsurf/; revision=5291
* Scheduled events now signal when the scheduled time has passed.Chris Young2008-09-081-2/+33
| | | | | | The timer appears to stop signalling events occasionally - needs some investigation. svn path=/trunk/netsurf/; revision=5287
* Reversed order of running a callback and removing it from the schedule list, ↵Chris Young2008-08-171-13/+3
| | | | | | | | this resolves a serious system freeze especially prevalent on XOOPS-based websites. svn path=/trunk/netsurf/; revision=5137
* Fully implemented schedule, schedule_run and schedule_remove.Chris Young2008-08-031-1/+104
| | | | svn path=/trunk/netsurf/; revision=4875
* Initial Amiga port files, mostly empty stub functions.Chris Young2008-08-021-0/+32
svn path=/trunk/netsurf/; revision=4864