mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9c9132ab56
commit
b95dd1d405
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user