refactor: add NonCopyableOrMovableClass to classes that don't need copy ctors

Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-05 11:21:51 +00:00
committed by Compute-Runtime-Automation
parent 038c287656
commit 72182c28e9
13 changed files with 34 additions and 17 deletions

View File

@@ -6,6 +6,8 @@
*/
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include <cstdint>
#include <memory>
@@ -16,7 +18,7 @@ class GraphicsAllocation;
class LinearStream;
class MemoryManager;
class ExperimentalCommandBuffer {
class ExperimentalCommandBuffer : NonCopyableOrMovableClass {
public:
virtual ~ExperimentalCommandBuffer();
ExperimentalCommandBuffer(CommandStreamReceiver *csr, double profilingTimerResolution);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Intel Corporation
* Copyright (C) 2018-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,6 +7,7 @@
#pragma once
#include "shared/source/helpers/bindless_heaps_helper.h"
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/indirect_heap/indirect_heap.h"
#include <cstddef>
@@ -28,7 +29,7 @@ inline constexpr size_t scratchSpaceOffsetFor64Bit = 4096u;
using ResidencyContainer = std::vector<GraphicsAllocation *>;
class ScratchSpaceController {
class ScratchSpaceController : NonCopyableOrMovableClass {
public:
ScratchSpaceController(uint32_t rootDeviceIndex, ExecutionEnvironment &environment, InternalAllocationStorage &allocationStorage);
virtual ~ScratchSpaceController();