SWDEV-476929 - Introduce an activeQueues set

The new set tracks only the queues that have a command
submitted to them. This allows for fast iteration
in waitActiveStreams.

Change-Id: I2c832eefa01280d9a87a5f57874d36d2e9441de7
Этот коммит содержится в:
Ioannis Assiouras
2024-09-09 15:30:50 +01:00
родитель d81c5d3d7f
Коммит bcc545e6b8
4 изменённых файлов: 31 добавлений и 4 удалений
+3
Просмотреть файл
@@ -267,6 +267,9 @@ class HostQueue : public CommandQueue {
// Release the last command in the batch
if (lastEnqueueCommand_ != nullptr) {
lastEnqueueCommand_->release();
} else {
// The queue becomes active. Add it to the set of activeQueues.
device_.addToActiveQueues(this);
}
// Extra retain for the last command