set_poll_func


Description:

public void set_poll_func (PollFunc func)

Sets the function to use to handle polling of file descriptors.

It will be used instead of the [`poll()`](man:poll(2)) system call (or GLib’s replacement function, which is used where `poll()` isn’t available).

This function could possibly be used to integrate the GLib event loop with an external event loop.

Parameters:

this

a main context (if `NULL`, the global-default main context will be used)

func

the function to call to poll all file descriptors