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) {}
};