MainContext.setPollFunc

Sets the function to use to handle polling of file descriptors. It will be used instead of the poll() 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.

class MainContext
void
setPollFunc

Parameters

func GPollFunc

the function to call to poll all file descriptors

Meta