SWDEV-501403 - Switch to std::shared_mutex for streamSetLock
Shared mutex allows to have access to the list of streams from multiple threads at the same time. Change-Id: Ibee64b846cde03321d5b17dbee2829c0bab7e7d6
This commit is contained in:
@@ -488,7 +488,7 @@ public:
|
||||
// Device lock
|
||||
amd::Monitor lock_{true};
|
||||
// Guards device stream set
|
||||
amd::Monitor streamSetLock{};
|
||||
std::shared_mutex streamSetLock;
|
||||
std::unordered_set<hip::Stream*> streamSet;
|
||||
/// ROCclr context
|
||||
amd::Context* context_;
|
||||
|
||||
Reference in New Issue
Block a user