mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Simplify isStatusCompletedByTermination.
- remove default parameter. - remove branch. Change-Id: Ia829adfc684057516a2fc204e853ad3948853e22
This commit is contained in:
committed by
sys_ocldev
parent
042901857f
commit
baa11187c3
@@ -141,10 +141,11 @@ bool CommandQueue::isQueueBlocked() {
|
||||
TakeOwnershipWrapper<CommandQueue> takeOwnershipWrapper(*this);
|
||||
//check if we have user event and if so, if it is in blocked state.
|
||||
if (this->virtualEvent) {
|
||||
if (this->virtualEvent->peekExecutionStatus() <= CL_SUBMITTED) {
|
||||
auto executionStatus = this->virtualEvent->peekExecutionStatus();
|
||||
if (executionStatus <= CL_SUBMITTED) {
|
||||
UNRECOVERABLE_IF(this->virtualEvent == nullptr);
|
||||
|
||||
if (this->virtualEvent->isStatusCompletedByTermination() == false) {
|
||||
if (this->virtualEvent->isStatusCompletedByTermination(executionStatus) == false) {
|
||||
taskCount = this->virtualEvent->peekTaskCount();
|
||||
flushStamp->setStamp(this->virtualEvent->flushStamp->peekStamp());
|
||||
taskLevel = this->virtualEvent->taskLevel;
|
||||
|
||||
Reference in New Issue
Block a user