fix: add assignment operator to ulls state

Fix for coverity issue, copy without assign.

Related-To: NEO-10942

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-03-28 15:20:52 +00:00
committed by Compute-Runtime-Automation
parent 9c9132ab56
commit b95dd1d405

View File

@@ -56,6 +56,14 @@ class DirectSubmissionController {
isStopped = other.isStopped.load();
taskCount = other.taskCount.load();
}
DirectSubmissionState &operator=(const DirectSubmissionState &other) {
if (this == &other) {
return *this;
}
this->isStopped = other.isStopped.load();
this->taskCount = other.taskCount.load();
return *this;
}
DirectSubmissionState() = default;
};