makePollfd

open fun makePollfd(pollfd: <Error class: unknown class>): Boolean

Creates a #GPollFD corresponding to @cancellable; this can be passed to g_poll() and used to poll for cancellation. This is useful both for unix systems without a native poll and for portability to windows.

When this function returns true, you should use g_cancellable_release_fd() to free up resources allocated for the

Return

true if @pollfd was successfully initialized, false on failure to prepare the cancellable.

Since

2.22

Parameters

pollfd

a pointer to a #GPollFD