Lines Matching refs:item
47 Always keep an item in flight if possible. If no item is in flight
48 when a work item appears, put the item in flight. Otherwise, push the
49 item onto the FIFO. When the current item in flight completes, pop
50 another item from the FIFO and put it in flight.
119 WorkItem* item = new SerializedWorkItem<Func>( p, f, s );
121 s->add(item);
123 ReadyPile.add(item);
203 std::atomic<int> count; // Count of queued items and in-flight item
204 void moveOneItemToReadyPile() { // Transfer item from queue to ReadyPile
205 WorkItem* item;
206 queue.try_pop(item);
207 ReadyPile.add(item);
210 void add( WorkItem* item ) {
211 queue.push(item);
243 1 to 0, then the queue is non-empty and another item in the queue
256 invoke\ ``item->run()``. This approach has relatively low overhead
264 to enqueue a task that invokes ``item->run()``. Doing so
275 ``Serializer::add`` determines if a work item is unconstrained, and
279 item. The term "run" means to run work immediately, or if there are