Types and Values
Schedules asynchronous I/O operations. GIOScheduler integrates into the main event loop (GMainLoop) and uses threads.
gboolean (*GIOSchedulerJobFunc) (
I/O Job function.
Long-running jobs should periodically check the
to see if they have been cancelled.
void g_io_scheduler_push_job (
g_io_scheduler_push_job is deprecated and should not be used in newly-written code.
Schedules the I/O job to run in another thread.
will be called on
regardless whether the job was cancelled or has run to completion.
void g_io_scheduler_cancel_all_jobs (
g_io_scheduler_cancel_all_jobs is deprecated and should not be used in newly-written code.
You should never call this function, since you don't know how other libraries in your program might be making use of gioscheduler.
Cancels all cancellable I/O jobs.
gboolean g_io_scheduler_job_send_to_mainloop (
g_io_scheduler_job_send_to_mainloop is deprecated and should not be used in newly-written code.
Used from an I/O job to send a callback to be run in the thread that the job was started from, waiting for the result (and thus blocking the I/O job).
void g_io_scheduler_job_send_to_mainloop_async (
g_io_scheduler_job_send_to_mainloop_async is deprecated and should not be used in newly-written code.
Used from an I/O job to send a callback to be run asynchronously in the thread that the job was started from. The callback will be run when the main loop is available, but at that time the I/O job might have finished. The return value from the callback is ignored.
Note that if you are passing the
on to this function you have to ensure that it is not freed before
is called, either by passing
g_io_scheduler_push_job() or by using refcounting for