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:
Filip Hazubski
2024-12-09 22:07:28 +00:00
committed by Compute-Runtime-Automation
parent 43c199185a
commit 7f412c77a2
2 changed files with 11 additions and 2 deletions

View File

@ -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();

View File

@ -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;
}