Make HostQueue::queue_count_ a portable atomic type.

Also make lint happy.

Change-Id: I0f965df6a76fd959df9eb411d1f1b11847159790
这个提交包含在:
Sean Keely 于 2017-10-31 02:38:25 -05:00 提交
1 父节点 ce6aee01ed
当前提交 d93f92f42d
4 个文件已更改
+15 -13

没有与搜索条件相匹配的文件

+1 -1
查看文件
@@ -166,7 +166,7 @@ class HostQueue : public Queue {
// Host queue id counter, starting from 0x80000000 to avoid overlaping
// with aql queue id.
static volatile uint32_t queue_count_;
static std::atomic<uint32_t> queue_count_;
DISALLOW_COPY_AND_ASSIGN(HostQueue);
};