IOSchedulerJob.pushJob

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().

More...
class IOSchedulerJob
static
void
pushJob
(
GIOSchedulerJobFunc jobFunc
,
void* userData
,
GDestroyNotify notify
,,)

Parameters

jobFunc GIOSchedulerJobFunc

a #GIOSchedulerJobFunc.

userData void*

data to pass to @job_func

notify GDestroyNotify

a #GDestroyNotify for @user_data, or %NULL

ioPriority int

the [I/O priority][io-priority] of the request.

cancellable Cancellable

optional #GCancellable object, %NULL to ignore.

Detailed Description

Deprecated: use #GThreadPool or g_task_run_in_thread()

Meta