Method
GLibMainContextcheck
Declaration [src]
gboolean
g_main_context_check (
GMainContext* context,
gint max_priority,
GPollFD* fds,
gint n_fds
)
Description [src]
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.
Since 2.76 context can be NULL to use the global-default
main context.
Parameters
context-
Type:
GMainContextA
GMainContext(ifNULL, the global-default main context will be used).The argument can be NULL. max_priority-
Type:
gintThe maximum numerical priority of sources to check.
fds-
Type: An array of
GPollFDArray of
GPollFD‘s that was passed to the last call tog_main_context_query().The length of the array is specified in the n_fdsargument.The data is owned by the caller of the method. n_fds-
Type:
gintReturn value of
g_main_context_query().