NetSurf
Functions
schedule.h File Reference
#include "amiga/os3support.h"
#include "utils/errors.h"
Include dependency graph for schedule.h:
This graph shows which files directly or indirectly include this file:

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...
 

Function Documentation

◆ ami_schedule()

nserror ami_schedule ( int  t,
void(*)(void *p)  callback,
void *  p 
)

Schedule a callback.

Parameters
tinterval before the callback should be made / ms
callbackcallback function
puser parameter, passed to callback function
Returns
NSERROR_OK on sucess or appropriate error on faliure

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_schedule_create()

nserror ami_schedule_create ( struct MsgPort *  msgport)

Initialise amiga scheduler.

Parameters
msgportopened message port
Returns
error.

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_schedule_free()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_schedule_handle()

void ami_schedule_handle ( struct MsgPort *  nsmsgport)

Handle a message received from the scheduler process.

Parameters
nsmsgportMessage port to process.

Definition at line 369 of file schedule.c.

References ami_scheduler_run().

Referenced by ami_get_msg().

Here is the call graph for this function:
Here is the caller graph for this function: