mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
sysman: serialize access to libigsc.
In a multi thread environment the access to the external library needs to be synchronized. Resolves: LOCI-2871, LOCI-2873 Signed-off-by: T.J.Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
33f02ee2eb
commit
1e6a38035e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "level_zero/tools/source/sysman/linux/firmware_util/firmware_util.h"
|
||||
|
||||
#include <cinttypes>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -101,5 +102,6 @@ class FirmwareUtilImp : public FirmwareUtil, NEO::NonCopyableOrMovableClass {
|
||||
uint8_t bus = 0;
|
||||
uint8_t device = 0;
|
||||
uint8_t function = 0;
|
||||
std::mutex fwLock;
|
||||
};
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user