or, if more than n_fds records need to be stored, the number of records that need to be stored.
MainContext.query
int query(int maxPriority, out int timeout, ref glib.types.PollFD[] fds)Determines information necessary to poll this main loop. You should be careful to pass the resulting fds array and its length n_fds as is when calling [glib.main_context.MainContext.check], as this function relies on assumptions made when the array is filled.
You must have successfully acquired the context with [glib.main_context.MainContext.acquire] before you may call this function.
Parameters
maxPriority | maximum priority source to check |
timeout | location to store timeout to be used in polling |
fds | location to store #GPollFD records that need to be polled. |
Returns
the number of records actually stored in fds,