release_fd


Description:

[ Version ( since = "2.22" ) ]
public void release_fd ()

Releases a resources previously allocated by get_fd or make_pollfd.

For compatibility reasons with older releases, calling this function is not strictly required, the resources will be automatically freed when the this is finalized. However, the this will block scarce file descriptors until it is finalized if this function is not called. This can cause the application to run out of file descriptors when many Cancellables are used at the same time.

Note that in the event that a [signal@Gio.Cancellable:GCancellable:cancelled] signal handler is currently running, this call will block until the handler has finished. Calling this function from a signal handler will therefore result in a deadlock.

Parameters:

this

a Cancellable