mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +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:
@@ -7,13 +7,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
|
||||
#include "level_zero/tools/source/sysman/frequency/frequency.h"
|
||||
#include "level_zero/tools/source/sysman/frequency/os_frequency.h"
|
||||
#include <level_zero/zet_api.h>
|
||||
|
||||
namespace L0 {
|
||||
|
||||
class FrequencyImp : public Frequency {
|
||||
class FrequencyImp : public Frequency, NEO::NonCopyableOrMovableClass {
|
||||
public:
|
||||
ze_result_t frequencyGetProperties(zet_freq_properties_t *pProperties) override;
|
||||
ze_result_t frequencyGetAvailableClocks(uint32_t *pCount, double *phFrequency) override;
|
||||
@@ -27,10 +29,6 @@ class FrequencyImp : public Frequency {
|
||||
OsFrequency *pOsFrequency = nullptr;
|
||||
void init();
|
||||
|
||||
// Don't allow copies of the FrequencyImp object
|
||||
FrequencyImp(const FrequencyImp &obj) = delete;
|
||||
FrequencyImp &operator=(const FrequencyImp &obj) = delete;
|
||||
|
||||
private:
|
||||
static const double step;
|
||||
static const bool canControl;
|
||||
|
||||
Reference in New Issue
Block a user