Use alertable_sleep_for in LoadManager:

This allows the LoadManager to exit immediately
instead of sleeping for up to 1 second on a stop.
This commit is contained in:
Vinnie Falco
2015-12-16 11:25:13 -05:00
parent 0d6ad47051
commit 0141aadf3e

View File

@@ -190,7 +190,7 @@ void LoadManager::run ()
}
else
{
std::this_thread::sleep_for (duration);
alertable_sleep_for(duration);
}
}