wait_job


Description:

[ Version ( since = "6.0" ) ]
public void* wait_job (owned WorkerFunc func) throws Error

Request that the worker thread call func with the data argument, much like submit_job, but waits (blocks) until func has been executed.

Note: it's up to the caller to free the result, the Worker object will not do it (ownership of the result is transfered to the caller).

Parameters:

this

a Worker object

func

the function to call from the worker thread

data

the data to pass to func, or null

data_destroy_func

a function to destroy data, or null

Returns:

the result of func's execution




2022 vala-language.org