SWDEV-488851 - Correctly remove the queue from the active set on windows
Change-Id: I4d21743ecf7a44636121f85566f898e62ff61e97
[ROCm/clr commit: 07bcc283f9]
Este commit está contenido en:
@@ -69,7 +69,6 @@ bool HostQueue::terminate() {
|
|||||||
// Note that if lastCommand isn't a marker, it may not be lastEnqueueCommand_ now
|
// Note that if lastCommand isn't a marker, it may not be lastEnqueueCommand_ now
|
||||||
// after lastCommand->awaitCompletion() is called.
|
// after lastCommand->awaitCompletion() is called.
|
||||||
if (lastEnqueueCommand_ != nullptr) {
|
if (lastEnqueueCommand_ != nullptr) {
|
||||||
device_.removeFromActiveQueues(this);
|
|
||||||
lastEnqueueCommand_ ->release(); // lastEnqueueCommand_ should be a marker
|
lastEnqueueCommand_ ->release(); // lastEnqueueCommand_ should be a marker
|
||||||
lastEnqueueCommand_ = nullptr;
|
lastEnqueueCommand_ = nullptr;
|
||||||
}
|
}
|
||||||
@@ -119,6 +118,8 @@ bool HostQueue::terminate() {
|
|||||||
Agent::postCommandQueueFree(as_cl(this->asCommandQueue()));
|
Agent::postCommandQueueFree(as_cl(this->asCommandQueue()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
device_.removeFromActiveQueues(this);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user