impr: Make events thread safe

This commit is contained in:
WerWolv
2023-11-04 23:16:38 +01:00
parent 055e18058f
commit 45fb046a9a
2 changed files with 20 additions and 1 deletions

View File

@@ -14,5 +14,11 @@ namespace hex {
return events;
}
std::recursive_mutex& EventManager::getEventMutex() {
static std::recursive_mutex mutex;
return mutex;
}
}