mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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 = {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user