binaryninja.queue.Queue

class Queue(maxsize=0)[source]

Create a queue object with a given maximum size.

If maxsize is <= 0, the queue size is infinite.

__init__(maxsize=0)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([maxsize])

Initialize self.

empty()

Return True if the queue is empty, False otherwise (not reliable!).

full()

Return True if the queue is full, False otherwise (not reliable!).

get([block, timeout])

Remove and return an item from the queue.

get_nowait()

Remove and return an item from the queue without blocking.

join()

Blocks until all items in the Queue have been gotten and processed.

put(item[, block, timeout])

Put an item into the queue.

put_nowait(item)

Put an item into the queue without blocking.

qsize()

Return the approximate size of the queue (not reliable!).

task_done()

Indicate that a formerly enqueued task is complete.