Improve queueLock and lastCmdLock

Reduce the size of the queueLock and lastCmdLock critical sections
to improve lock contention performance. The smaller the critical
sections are the better.

lasCmdLock is still needed to guarantee that getLastEnqueueCommand_
can retain the command before it is swapped out and released.

Change-Id: Id35d4a77c035b2da0de4c15568b153d49e958bb7
Этот коммит содержится в:
Laurent Morichetti
2020-08-24 17:52:34 -07:00
коммит произвёл Saleel Kudchadker
родитель c95c613edc
Коммит 080dcfe857
2 изменённых файлов: 16 добавлений и 8 удалений
-3
Просмотреть файл
@@ -234,9 +234,6 @@ class HostQueue : public CommandQueue {
//! Get last enqueued command
Command* getLastQueuedCommand(bool retain);
//! Set last enqueued command
void setLastQueuedCommand(Command* lastCommand) {}
};