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:
T.J.Vivek Vilvaraj
2022-02-12 19:35:23 +00:00
committed by Compute-Runtime-Automation
parent 33f02ee2eb
commit 1e6a38035e

View File

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