fix: Various pattern execution race conditions

This commit is contained in:
WerWolv
2023-05-12 15:46:13 +02:00
parent 0a7a190b04
commit aaeebd3fe9
5 changed files with 45 additions and 40 deletions

View File

@@ -1162,7 +1162,7 @@ namespace hex::plugin::builtin {
}
void process() override {
auto lock = ContentRegistry::PatternLanguage::getRuntimeLock();
auto lock = std::scoped_lock(ContentRegistry::PatternLanguage::getRuntimeLock());
auto &runtime = ContentRegistry::PatternLanguage::getRuntime();
const auto &outVars = runtime.getOutVariables();