MainContext.check
bool check(int maxPriority, glib.types.PollFD[] fds)Passes the results of polling back to the main loop. You should be careful to pass fds and its length n_fds as received from [glib.main_context.MainContext.query], as this functions relies on assumptions on how fds is filled.
You must have successfully acquired the context with [glib.main_context.MainContext.acquire] before you may call this function.
Since 2.76 context can be null to use the global-default main context.
Parameters
maxPriority | the maximum numerical priority of sources to check |
fds | array of #GPollFD's that was passed to the last call to [glib.main_context.MainContext.query] |
Returns
true if some sources are ready to be dispatched.