Don't allow copy or moving Sysman related objects.

Change-Id: I70dd97bffa1c4d08f05eb796c6d6a2eb66f06f4b
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
This commit is contained in:
Bill Jordan
2020-07-09 12:34:23 -04:00
committed by sys_ocldev
parent 1544453f24
commit e8bd440773
28 changed files with 42 additions and 52 deletions

View File

@@ -14,7 +14,7 @@
namespace L0 {
class LinuxStandbyImp : public OsStandby, public NEO::NonCopyableClass {
class LinuxStandbyImp : public OsStandby, NEO::NonCopyableOrMovableClass {
public:
ze_result_t getMode(zet_standby_promo_mode_t &mode) override;
ze_result_t setMode(zet_standby_promo_mode_t mode) override;

View File

@@ -6,6 +6,7 @@
*/
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include <level_zero/zet_api.h>
@@ -14,7 +15,7 @@
namespace L0 {
class StandbyImp : public Standby {
class StandbyImp : public Standby, NEO::NonCopyableOrMovableClass {
public:
ze_result_t standbyGetProperties(zet_standby_properties_t *pProperties) override;
ze_result_t standbyGetMode(zet_standby_promo_mode_t *pMode) override;
@@ -27,10 +28,6 @@ class StandbyImp : public Standby {
void init();
// Don't allow copies of the StandbyImp object
StandbyImp(const StandbyImp &obj) = delete;
StandbyImp &operator=(const StandbyImp &obj) = delete;
private:
zet_standby_properties_t standbyProperties = {};
};