removeAll

fun removeAll(c: Collection<T>, statFlag: Boolean = waitTimeStatOption): Boolean

Removes from this queue all the elements that are contained in the specified collection The collection should contain references to objects of type QObject that had been enqueued in this queue; otherwise, nothing will be removed.

Automatically, updates the number in queue variable If statFlag is true it automatically collects time in queue statistics on removed items

Return

true if the queue changed as a result of the call

Parameters

c

The collection containing the QObject's to remove

statFlag

true means collect statistics, false means do not


fun removeAll(c: Iterator<T>, statFlag: Boolean = waitTimeStatOption): Boolean

Removes from this queue all the elements that are presented by iterating through this iterator The iterator should be based on a collection that contains references to objects of type QObject that had been enqueued in this queue; otherwise, nothing will be removed.

Automatically, updates the number in queue variable If statFlag is true it automatically collects time in queue statistics on removed items

Return

true if the queue changed as a result of the call

Parameters

c

The iterator over the collection containing the QObject's to remove

statFlag

true means collect statistics, false means do not


fun removeAll(statFlag: Boolean = waitTimeStatOption): Boolean

Removes from this queue all the elements.

Automatically, updates the number in queue variable If statFlag is true it automatically collects time in queue statistics on removed items

Return

true if the queue changed as a result of the call

Parameters

statFlag

true means collect statistics, false means do not