P4 to Git Change 1979518 by kjayapra@3_HIPWS_TXHDR_ROCM on 2019/08/07 12:40:50

SWDEV-198194 - Adding lock in Unregistervar.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#36 edit


[ROCm/hip commit: 4092ab0f7a]
This commit is contained in:
foreman
2019-08-07 12:45:50 -04:00
parent 1a4364558a
commit 9f77fec459
+1
View File
@@ -166,6 +166,7 @@ extern "C" std::vector< std::pair<hipModule_t, bool> >* __hipRegisterFatBinary(c
}
void PlatformState::unregisterVar(hipModule_t hmod) {
amd::ScopedLock lock(lock_);
auto it = vars_.begin();
while (it != vars_.end()) {
DeviceVar& dvar = it->second;