send_to_mainloop


Description:

[ Deprecated ]
public bool send_to_mainloop (owned SourceFunc func)

Warning: send_to_mainloop is deprecated.

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

Note:

Use g_main_context_invoke.

Parameters:

this

a IOSchedulerJob

func

a SourceFunc callback that will be called in the original thread

notify

a DestroyNotify for user_data, or null

user_data

data to pass to func

Returns:

The return value of func