Home
last modified time | relevance | path

Searched refs:taskQueue (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/tests/support/
DThreadPool.java26 private LinkedList<Runnable> taskQueue; field in ThreadPool
38 taskQueue = new LinkedList<Runnable>(); in ThreadPool()
49 taskQueue.add(task); in runTask()
55 while (taskQueue.size() == 0) { in getTask()
62 return (Runnable) taskQueue.removeFirst(); in getTask()
68 taskQueue.clear(); in close()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousChannelGroupImpl.java65 private final Queue<Runnable> taskQueue; field in AsynchronousChannelGroupImpl
79 taskQueue = new ConcurrentLinkedQueue<Runnable>(); in AsynchronousChannelGroupImpl()
81 taskQueue = null; // not used in AsynchronousChannelGroupImpl()
193 taskQueue.offer(task);
197 return (taskQueue == null) ? null : taskQueue.poll();