We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51935e commit e150934Copy full SHA for e150934
source/loader/layers/validation/ur_leak_check.hpp
@@ -136,6 +136,7 @@ struct RefCountContext {
136
void clear() { counts.clear(); }
137
138
template <typename T> bool isReferenceValid(T handle) {
139
+ std::unique_lock<std::mutex> lock(mutex);
140
auto it = counts.find(static_cast<void *>(handle));
141
if (it == counts.end() || it->second.refCount < 1) {
142
return false;
0 commit comments