All sleep calls via std::this_thread
[invirt/third/libt4.git] / lock_smain.cc
index ae3b51d..64f7985 100644 (file)
@@ -1,8 +1,4 @@
 #include "lock_server.h"
-#include <arpa/inet.h>
-#include <unistd.h>
-
-// Main loop of lock_server
 
 int main(int argc, char *argv[]) {
     global = new t4_state('s');
@@ -20,5 +16,5 @@ int main(int argc, char *argv[]) {
     rsm.start();
 
     while(1)
-        sleep(1000);
+        std::this_thread::sleep_for(milliseconds(1000));
 }