MainContext.check

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 g_main_context_query(), as this functions relies on assumptions on how @fds is filled.

You must have successfully acquired the context with g_main_context_acquire() before you may call this function.

class MainContext
bool
check

Parameters

maxPriority int

the maximum numerical priority of sources to check

fds GPollFD[]

array of #GPollFD's that was passed to the last call to g_main_context_query()

Return Value

Type: bool

%TRUE if some sources are ready to be dispatched.

Meta