mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
038c287656
commit
72182c28e9
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#define UMDF_USING_NTSTATUS
|
||||
@@ -14,7 +15,7 @@
|
||||
namespace NEO {
|
||||
namespace Windows {
|
||||
|
||||
class OsLibrary : public NEO::OsLibrary {
|
||||
class OsLibrary : public NEO::OsLibrary, NEO::NonCopyableOrMovableClass {
|
||||
private:
|
||||
HMODULE handle;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/debug_helpers.h"
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/os_interface/windows/windows_wrapper.h"
|
||||
#include "shared/source/utilities/io_functions.h"
|
||||
|
||||
@@ -22,7 +23,7 @@ constexpr bool wddmResidencyLoggingAvailable = true;
|
||||
constexpr bool wddmResidencyLoggingAvailable = false;
|
||||
#endif
|
||||
|
||||
class WddmResidencyLogger {
|
||||
class WddmResidencyLogger : NonCopyableOrMovableClass {
|
||||
public:
|
||||
WddmResidencyLogger(unsigned int device, void *fenceValueCpuVirtualAddress, std::string outDirectory) {
|
||||
const char *wddmResidencyLoggerDefaultDirectory = "unk";
|
||||
|
||||
Reference in New Issue
Block a user