Use shared mutex for unified memory manager

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-02-23 16:27:17 +00:00
committed by Compute-Runtime-Automation
parent 447c40cec0
commit c405fb5c2c
2 changed files with 19 additions and 18 deletions

View File

@@ -18,6 +18,7 @@
#include <map>
#include <mutex>
#include <set>
#include <shared_mutex>
namespace NEO {
class CommandStreamReceiver;
@@ -172,7 +173,7 @@ class SVMAllocsManager {
MapBasedAllocationTracker SVMAllocs;
MapOperationsTracker svmMapOperations;
MemoryManager *memoryManager;
SpinLock mtx;
std::shared_mutex mtx;
bool multiOsContextSupport;
};
} // namespace NEO