query


Description:

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

Determines information necessary to poll this main loop.

You should be careful to pass the resulting fds array and its length fds.length as is when calling check, as this function relies on assumptions made when the array is filled.

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.