g_io_scheduler_push_job


Description:

[ Deprecated ( since = "vala-0.16" , replacement = "IOSchedulerJob.push" ) ]
public void g_io_scheduler_push_job (owned IOSchedulerJobFunc job_func, int io_priority = DEFAULT, Cancellable? cancellable = null)

Warning: g_io_scheduler_push_job is deprecated. Use GLib.IOSchedulerJob.push.

Schedules the I/O job to run in another thread.

Note:

use ThreadPool or g_task_run_in_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 cancel or by calling g_io_scheduler_cancel_all_jobs.

Parameters:

job_func

a IOSchedulerJobFunc.

io_priority

the I/O priority of the request.

cancellable

optional Cancellable object, null to ignore.

notify

a DestroyNotify for user_data, or null

user_data

data to pass to job_func


Namespace: GLib
Package: gio-2.0