So many changes. Broken.
[invirt/third/libt4.git] / lock_smain.cc
index ae3b51d..52e6c4f 100644 (file)
@@ -1,8 +1,6 @@
-#include "lock_server.h"
-#include <arpa/inet.h>
-#include <unistd.h>
+#include "include/lock_server.h"
 
-// Main loop of lock_server
+using namespace std::chrono;
 
 int main(int argc, char *argv[]) {
     global = new t4_state('s');
@@ -20,5 +18,5 @@ int main(int argc, char *argv[]) {
     rsm.start();
 
     while(1)
-        sleep(1000);
+        std::this_thread::sleep_for(1000ms);
 }