query


Description:

public int query (int max_priority, out int timeout_, PollFD[] fds)

Determines information necessary to poll this main loop.

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

Parameters:

this

a MainContext

max_priority

maximum priority source to check

timeout_

location to store timeout to be used in polling

fds

location to store PollFD records that need to be polled.

n_fds

length of fds.

Returns:

the number of records actually stored in fds, or, if more than fds.length records need to be stored, the number of records that need to be stored.