NetSurf
|
Go to the source code of this file.
Functions | |
nserror | ami_schedule (int t, void(*callback)(void *p), void *p) |
Schedule a callback. More... | |
void | ami_schedule_handle (struct MsgPort *nsmsgport) |
Handle a message received from the scheduler process. More... | |
nserror | ami_schedule_create (struct MsgPort *msgport) |
Initialise amiga scheduler. More... | |
void | ami_schedule_free (void) |
Finalise amiga scheduler. More... | |
nserror ami_schedule | ( | int | t, |
void(*)(void *p) | callback, | ||
void * | p | ||
) |
Schedule a callback.
t | interval before the callback should be made / ms |
callback | callback function |
p | user parameter, passed to callback function |
The callback function will be called as soon as possible after t ms have passed.
Definition at line 331 of file schedule.c.
References AllocSysObjectTags, ami_schedule_add_timer_event(), ami_schedule_locate(), ami_schedule_reschedule(), ASOT_IOREQUEST, nscallback::callback, NSERROR_INIT_FAILED, NSERROR_NOMEM, NSERROR_OK, nscallback::p, schedule_list, schedule_msgport, schedule_remove(), and tioreq.
Referenced by ami_corewindow_fini(), ami_cw_redraw(), ami_font_cache_cleanup(), ami_font_cache_fini(), ami_font_cache_init(), ami_gui_event(), ami_memory_handler(), ami_pageinfo_event(), ami_pageinfo_mouse(), ami_schedule_redraw(), ami_schedule_redraw_remove(), ami_throbber_redraw_schedule(), amiga_bitmap_destroy(), amiga_bitmap_get_buffer(), amiga_bitmap_modified(), gui_window_create(), gui_window_destroy(), and HOOKF().
nserror ami_schedule_create | ( | struct MsgPort * | msgport | ) |
Initialise amiga scheduler.
msgport | opened message port |
Definition at line 302 of file schedule.c.
References ami_schedule_compare(), ami_schedule_open_timer(), NSERROR_NOMEM, NSERROR_OK, schedule_list, and schedule_msgport.
Referenced by ami_gui_resources_open().
void ami_schedule_free | ( | void | ) |
Finalise amiga scheduler.
Definition at line 320 of file schedule.c.
References ami_schedule_close_timer(), ami_schedule_dump(), schedule_list, and schedule_remove_all().
Referenced by ami_gui_resources_free().
void ami_schedule_handle | ( | struct MsgPort * | nsmsgport | ) |
Handle a message received from the scheduler process.
nsmsgport | Message port to process. |
Definition at line 369 of file schedule.c.
References ami_scheduler_run().
Referenced by ami_get_msg().