check


Description:

public bool check (int max_priority, PollFD[] fds)

Passes the results of polling back to the main loop.

You should be careful to pass fds and its length fds.length as received from query, as this functions relies on assumptions on how fds is filled.

You must have successfully acquired the context with acquire before you may call this function.

Parameters:

this

a MainContext

max_priority

the maximum numerical priority of sources to check

fds

array of PollFD's that was passed to the last call to query

n_fds

return value of query

Returns:

true if some sources are ready to be dispatched.