AFL.automation.shared.MutableQueue#

Classes

MutableQueue()

Thread-safe, mutable queue

Exceptions

Empty

Exception raised by Queue.get(block=0)/get_nowait().

Full

Exception raised by Queue.put(block=0)/put_nowait().

class AFL.automation.shared.MutableQueue.MutableQueue[source]#

Thread-safe, mutable queue

Unlike the standard library CPython queue, this class supportes positional inserts, deletions, and reordering. The tradeoff is performance for both reads and writes to the queue.

__init__()[source]#
qsize()[source]#
iterationid()[source]#
empty()[source]#
put(item, loc)[source]#

Insert an item at the top of the queue

remove(loc)[source]#

Remove an item from the queue

get(loc=0, block=True, timeout=None)[source]#

Get next item from queue

move(old_index, new_index=None)[source]#

Move item in queue

clear()[source]#

Remove all items from the queue