mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
fix: Explicitly delete unused functions
Explicitly delete unused functions of CheckIfExitCalled and VfManagementHandleContext. Comply with the rule of five. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
43c199185a
commit
7f412c77a2
@ -34,6 +34,10 @@ class VfManagement : _zes_vf_handle_t {
|
||||
struct VfManagementHandleContext {
|
||||
VfManagementHandleContext(OsSysman *pOsSysman) : pOsSysman(pOsSysman){};
|
||||
~VfManagementHandleContext();
|
||||
VfManagementHandleContext(VfManagementHandleContext &&other) noexcept = delete;
|
||||
VfManagementHandleContext(const VfManagementHandleContext &other) = delete;
|
||||
VfManagementHandleContext &operator=(VfManagementHandleContext &&other) noexcept = delete;
|
||||
VfManagementHandleContext &operator=(const VfManagementHandleContext &other) = delete;
|
||||
|
||||
ze_result_t init();
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/utilities/cpuintrinsics.h"
|
||||
|
||||
#include "opencl/source/tracing/tracing_handle.h"
|
||||
@ -30,11 +29,17 @@ namespace HostSideTracing {
|
||||
|
||||
inline thread_local bool tracingInProgress = false;
|
||||
|
||||
class CheckIfExitCalled : public NEO::NonCopyableOrMovableClass {
|
||||
class CheckIfExitCalled {
|
||||
public:
|
||||
CheckIfExitCalled() = default;
|
||||
~CheckIfExitCalled() {
|
||||
UNRECOVERABLE_IF(!tracingExited);
|
||||
}
|
||||
CheckIfExitCalled(CheckIfExitCalled &&other) noexcept = delete;
|
||||
CheckIfExitCalled(const CheckIfExitCalled &other) = delete;
|
||||
CheckIfExitCalled &operator=(CheckIfExitCalled &&other) noexcept = delete;
|
||||
CheckIfExitCalled &operator=(const CheckIfExitCalled &other) = delete;
|
||||
|
||||
void exit() {
|
||||
tracingExited = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user