Add thread-safety to various scripting methods

This commit is contained in:
Wojtek Figat
2023-10-01 10:57:51 +02:00
parent 075f40b93a
commit d10d52ec0c
5 changed files with 23 additions and 3 deletions

View File

@@ -1044,7 +1044,7 @@ const MAssembly::ClassesDictionary& MAssembly::GetClasses() const
const StringAnsiView monoImageName(mono_image_get_name(_monoImage));
ZoneText(*monoImageName, monoImageName.Length());
#endif
ScopeLock lock(_locker);
ScopeLock lock(BinaryModule::Locker);
if (_hasCachedClasses)
return _classes;
ASSERT(_classes.IsEmpty());