Name
Scheduler -- Scheduling facility
Description
This facility allows the code to do things at certain times without having to
handle and count all the clock's TICK events.
Details
sched_init ()
Initializes the scheduling facility. Mainly registering a callback for the
clock subsystem.
sched_event ()
gpointer sched_event (gint sched_time,
sched_callback_t func,
gpointer data,
gint flags); |
Function func will be called at time sched_time with arguments sched_time
and data.
sched_delay ()
gpointer sched_delay (gint delay,
sched_callback_t func,
gpointer data,
gint flags); |
function func will be called within delay time units with the current
time as first argument and data as the second.
sched_callback_t ()
void (*sched_callback_t) (gint time,
gpointer data); |
Funtion pointer type for the callbacks used in the sched facility.
enum sched_flags_t
typedef enum {
FREE_SCHED_DATA = 1<<0, /* The data pointer will be used
* as argument to g_free() when done*/
SCHED_RELOAD = 1<<1 /* The callback will be called every "delay"
* time units */
} sched_flags_t; |
Flags for the scheduling facility