coroutines truly are cursed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user