Make HostQueue::queue_count_ a portable atomic type.

Also make lint happy.

Change-Id: I0f965df6a76fd959df9eb411d1f1b11847159790
This commit is contained in:
Sean Keely
2017-10-31 02:34:47 -05:00
parent ce6aee01ed
commit d93f92f42d
4 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -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);
};
+3 -1
View File
@@ -317,7 +317,9 @@ class Runtime {
ExtensionEntryPoints extensions_;
hsa_status_t SetCustomVMFaultHandler(hsa_status_t (*callback)(const void* event_specific_data, void* data), void* data);
hsa_status_t SetCustomVMFaultHandler(hsa_status_t (*callback)(const void* event_specific_data,
void* data),
void* data);
protected:
static void AsyncEventsLoop(void*);