wait_job
Description:
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 |
data_destroy_func |
a function to destroy |
Returns:
the result of |