IOSchedulerJob.pushJob

Warning g_io_scheduler_push_job is deprecated and should not be used in newly-written code. use GThreadPool or g_task_run_in_thread() Schedules the I/O job to run in another thread. notify will be called on user_data after job_func has returned, regardless whether the job was cancelled or has run to completion. If cancellable is not NULL, it can be used to cancel the I/O job by calling g_cancellable_cancel() or by calling g_io_scheduler_cancel_all_jobs().

Parameters

jobFunc GIOSchedulerJobFunc

a GIOSchedulerJobFunc.

userData void*

data to pass to job_func

notify GDestroyNotify

a GDestroyNotify for user_data, or NULL. [allow-none]

ioPriority int

the I/O priority of the request.

cancellable Cancellable

optional GCancellable object, NULL to ignore.

Meta