IOSchedulerJob.sendToMainloop

Warning g_io_scheduler_job_send_to_mainloop is deprecated and should not be used in newly-written code. Use g_main_context_invoke(). 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).

class IOSchedulerJob
int
sendToMainloop

Parameters

func GSourceFunc

a GSourceFunc callback that will be called in the original thread

userData void*

data to pass to func

notify GDestroyNotify

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

Return Value

Type: int

The return value of func

Meta