coroutines truly are cursed

This commit is contained in:
2021-11-11 20:12:50 +01:00
parent 1848bb5139
commit 01049019fd
25 changed files with 202 additions and 92 deletions
+5
View File
@@ -39,4 +39,9 @@ PWindow WindowManager::addWindow(const WindowCreateInfo &createInfo)
void WindowManager::notifyWindowClosed(PWindow window)
{
windows.remove(windows.find(window));
if(windows.empty())
{
std::unique_lock lock(windowsLock);
windowsCV.notify_all();
}
}