mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
Related-To: LOCI-4118 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
29 lines
566 B
C++
29 lines
566 B
C++
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/os_interface/linux/hw_device_id.h"
|
|
|
|
#include <mutex>
|
|
|
|
namespace L0 {
|
|
namespace Sysman {
|
|
class SysmanHwDeviceIdDrm : public NEO::HwDeviceIdDrm {
|
|
|
|
public:
|
|
using NEO::HwDeviceIdDrm::HwDeviceIdDrm;
|
|
SysmanHwDeviceIdDrm() = delete;
|
|
MOCKABLE_VIRTUAL int openFileDescriptor();
|
|
MOCKABLE_VIRTUAL int closeFileDescriptor();
|
|
|
|
private:
|
|
std::mutex fdMutex{};
|
|
uint32_t fdRefCounter = 0;
|
|
};
|
|
|
|
} // namespace Sysman
|
|
} // namespace L0
|