GIOScheduler

GIOScheduler

Synopsis




                    GIOJob;
void                (*GIOJobFunc)                       (GIOJob *job,
                                                         GCancellable *cancellable,
                                                         gpointer user_data);
void                (*GIODataFunc)                      (gpointer user_data);
void                g_schedule_io_job                   (GIOJobFunc job_func,
                                                         gpointer user_data,
                                                         GDestroyNotify notify,
                                                         gint io_priority,
                                                         GCancellable *cancellable);
void                g_cancel_all_io_jobs                (void);
void                g_io_job_send_to_mainloop           (GIOJob *job,
                                                         GIODataFunc func,
                                                         gpointer user_data,
                                                         GDestroyNotify notify,
                                                         gboolean block);

Description

Details

GIOJob

typedef struct _GIOJob GIOJob;


GIOJobFunc ()

void                (*GIOJobFunc)                       (GIOJob *job,
                                                         GCancellable *cancellable,
                                                         gpointer user_data);

job :

cancellable :

user_data :


GIODataFunc ()

void                (*GIODataFunc)                      (gpointer user_data);

user_data :


g_schedule_io_job ()

void                g_schedule_io_job                   (GIOJobFunc job_func,
                                                         gpointer user_data,
                                                         GDestroyNotify notify,
                                                         gint io_priority,
                                                         GCancellable *cancellable);

Schedules the job_func.

job_func :

a GIOJobFunc.

user_data :

a gpointer.

notify :

a GDestroyNotify.

io_priority :

the io priority of the request. a gint.

cancellable :

optional GCancellable object, NULL to ignore.

g_cancel_all_io_jobs ()

void                g_cancel_all_io_jobs                (void);

Cancels all cancellable I/O Jobs.


g_io_job_send_to_mainloop ()

void                g_io_job_send_to_mainloop           (GIOJob *job,
                                                         GIODataFunc func,
                                                         gpointer user_data,
                                                         GDestroyNotify notify,
                                                         gboolean block);

job :

a GIOJob.

func :

a GIODataFunc.

user_data :

a gpointer.

notify :

a GDestroyNotify.

block :

boolean flag indicating whether or not this job should block.