intercepting queue delete fixed without the callback registered

Change-Id: If278c3fbd0feb91937981aee95039a243efaa130
Tento commit je obsažen v:
Evgeny
2018-12-20 09:41:36 -06:00
rodič ea0a1110dc
revize d08e240928
+1 -1
Zobrazit soubor
@@ -110,7 +110,7 @@ class InterceptQueue {
static hsa_status_t QueueDestroy(hsa_queue_t* queue) {
std::lock_guard<mutex_t> lck(mutex_);
hsa_status_t status = HSA_STATUS_ERROR;
hsa_status_t status = HSA_STATUS_SUCCESS;
if (destroy_callback_ != NULL) {
status = destroy_callback_(queue, callback_data_);