Joins task. After this call, it is safe to unref the task and clean up the lock set with Task.setLock.

The task will automatically be stopped with this call.

This function cannot be called from within a task function as this would cause a deadlock. The function will detect this and print a g_warning.

class Task

Return Value

Type: bool

TRUE if the task could be joined.

MT safe.