gCancellableDisconnect: gCancellableDisconnect
Description
Disconnects a handler from an cancellable instance similar to
gSignalHandlerDisconnect but ensures that once this
function returns the handler will not run anymore in any thread.Usage
gCancellableDisconnect(object, handler.id)
Details
This avoids a race condition where a thread cancels at the
same time as the cancellable operation is finished and the
signal handler is removed. See "cancelled" for
details on how to use this.
If cancellable is NULL or handler.id is 0 this function does
nothing.
Since 2.22