Lines Matching defs:fds

153    *          (which is what waitMultiple() stores in fds[])
181 * @param maxRet the maximum number of fds[] and revents[] to return.
182 * @param fds[] (return) an array of ints in which to store fds with
184 * fds.length must be >= maxRet
186 * same-indexed fds[] (i.e. fds[0] has events revents[0])
189 * Note : both above arrays are "dense," i.e. only fds[] with events
194 * @return the number of fds with triggered events.
197 * or the maxRet parameter (in the case of no maxRet, fds.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
237 * A convenience method for waiting on IO events when the fds
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");
260 * A convenience method for waiting on IO events when the fds
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");
322 private native int nativeWait(int handle, int maxRet, int[] fds,