Add AddResultToCheck

This commit is contained in:
Lion Kortlepel 2022-02-03 19:45:51 +01:00
parent 40b23cbbe6
commit 144ccf14ec
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -142,6 +142,11 @@ TLuaStateId TLuaEngine::GetStateIDForPlugin(const fs::path& PluginPath) {
return "";
}
void TLuaEngine::AddResultToCheck(const std::shared_ptr<TLuaResult>& Result) {
std::unique_lock Lock(mResultsToCheckMutex);
mResultsToCheck.push(Result);
}
std::unordered_map<std::string /*event name */, std::vector<std::string> /* handlers */> TLuaEngine::Debug_GetEventsForState(TLuaStateId StateId) {
std::unordered_map<std::string, std::vector<std::string>> Result;
std::unique_lock Lock(mLuaEventsMutex);