mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-23 03:33:13 +08:00
fix: Add assert that ExternalSemaphoreController is NonCopyableOrMovable
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6924a48ca6
commit
855581d03d
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/os_interface/external_semaphore.h"
|
||||
|
||||
#include "level_zero/core/source/device/device.h"
|
||||
@@ -34,7 +35,7 @@ class ExternalSemaphoreImp : public ExternalSemaphore {
|
||||
const ze_intel_external_semaphore_exp_desc_t *desc;
|
||||
};
|
||||
|
||||
class ExternalSemaphoreController {
|
||||
class ExternalSemaphoreController : NEO::NonCopyableOrMovableClass {
|
||||
public:
|
||||
enum SemaphoreOperation {
|
||||
Wait,
|
||||
@@ -98,4 +99,6 @@ class ExternalSemaphoreController {
|
||||
std::thread extSemThread;
|
||||
};
|
||||
|
||||
} // namespace L0
|
||||
static_assert(NEO::NonCopyableOrMovable<ExternalSemaphoreController>);
|
||||
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user