mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
fix: Add asserts to ensure NonCopyable and NonMovable 3/n
Related-To: NEO-14068 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ff9d0d7ea0
commit
6b6202446b
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/helpers/options.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/source/utilities/io_functions.h"
|
||||
@@ -119,14 +120,11 @@ struct DebugVariables { // NOLINT(clang-analyzer
|
||||
};
|
||||
|
||||
template <DebugFunctionalityLevel debugLevel>
|
||||
class DebugSettingsManager {
|
||||
class DebugSettingsManager : NEO::NonCopyableAndNonMovableClass {
|
||||
public:
|
||||
DebugSettingsManager(const char *registryPath);
|
||||
~DebugSettingsManager();
|
||||
|
||||
DebugSettingsManager(const DebugSettingsManager &) = delete;
|
||||
DebugSettingsManager &operator=(const DebugSettingsManager &) = delete;
|
||||
|
||||
static constexpr bool registryReadAvailable() {
|
||||
return (debugLevel == DebugFunctionalityLevel::full) || (debugLevel == DebugFunctionalityLevel::regKeys);
|
||||
}
|
||||
@@ -182,6 +180,10 @@ class DebugSettingsManager {
|
||||
static const char *settingsDumpFileName;
|
||||
};
|
||||
|
||||
static_assert(NEO::NonCopyableAndNonMovable<DebugSettingsManager<DebugFunctionalityLevel::none>>);
|
||||
static_assert(NEO::NonCopyableAndNonMovable<DebugSettingsManager<DebugFunctionalityLevel::full>>);
|
||||
static_assert(NEO::NonCopyableAndNonMovable<DebugSettingsManager<DebugFunctionalityLevel::regKeys>>);
|
||||
|
||||
extern DebugSettingsManager<globalDebugFunctionalityLevel> debugManager;
|
||||
|
||||
class DurationLog {
|
||||
|
||||
Reference in New Issue
Block a user