Lines Matching refs:revents

181    * @param maxRet    the maximum number of fds[] and revents[] to return.
185 * @param revents[] (return) the actual events available on the
186 * same-indexed fds[] (i.e. fds[0] has events revents[0])
187 * revents.length must be >= maxRet
198 * must equal revents.length)
203 public synchronized int waitMultiple(int maxRet, int[] fds,short[] revents,
206 if ((revents == null) || (fds == null)) {
208 throw new NullPointerException("fds or revents is null");
211 (maxRet > revents.length) || (maxRet > fds.length) ) {
215 int ret = nativeWait(handle, maxRet, fds, revents, timeout);
229 public int waitMultiple(int maxRet, int[] fds, short[] revents)
232 return waitMultiple(maxRet, fds, revents,-1L); // already synchronized
238 * and revents arrays are the same length and that specifies the
244 public synchronized int waitMultiple(int[] fds, short[] revents,
247 if ((revents == null) && (fds == null)) {
249 } else if ((revents == null) || (fds == null)) {
250 throw new NullPointerException("revents or fds is null");
251 } else if (fds.length == revents.length) {
252 return nativeWait(handle, fds.length, fds, revents, timeout);
254 throw new IllegalArgumentException("fds.length != revents.length");
261 * and revents arrays are the same length and that specifies the
268 public int waitMultiple(int[] fds, short[] revents)
271 if ((revents == null) || (fds == null)) {
272 throw new NullPointerException("fds or revents is null");
273 } else if (fds.length == revents.length) {
274 return waitMultiple(revents.length,fds,revents,-1L); // already sync
276 throw new IllegalArgumentException("fds.length != revents.length");