Replace Sleep() by std::thread::sleep_for()

This commit is contained in:
Térence Clastres authored and Adam Honse committed 2020-06-24 09:28:11 -05:00
1 parent 60baf6d05f
commit b79ff124e6
24 files changed
+80 -232

No files matched your search

-5
View File
@@ -28,11 +28,6 @@ const char yes = 1;
#include <Windows.h>
#else
#include <unistd.h>
static void Sleep(unsigned int milliseconds)
{
usleep(1000 * milliseconds);
}
#endif
NetworkServer::NetworkServer(std::vector<RGBController *>& control) : controllers(control)