Replace Sleep() by std::thread::sleep_for()
This commit is contained in:
1 parent
60baf6d05f
commit
b79ff124e6
24 files changed
+80
-232
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user