Add timeout to WaitForAll

This commit is contained in:
Lion Kortlepel committed 2021-12-05 01:09:41 +01:00
1 parent 86169ad0fa
commit a289d0e872
2 files changed
+10 -3

No files matched your search

+2 -1
View File
@@ -105,7 +105,8 @@ public:
return LuaEventsCount - GetLuaStateCount();
}
static void WaitForAll(std::vector<std::shared_ptr<TLuaResult>>& Results);
static void WaitForAll(std::vector<std::shared_ptr<TLuaResult>>& Results,
const std::chrono::high_resolution_clock::duration& Max = std::chrono::hours(std::numeric_limits<size_t>().max()));
void ReportErrors(const std::vector<std::shared_ptr<TLuaResult>>& Results);
bool HasState(TLuaStateId StateId);
[[nodiscard]] std::shared_ptr<TLuaResult> EnqueueScript(TLuaStateId StateID, const TLuaChunk& Script);