So many changes. Broken.
[invirt/third/libt4.git] / lock_tester.cc
index fbdeeb4..63c0722 100644 (file)
@@ -2,10 +2,12 @@
 // Lock server tester
 //
 
-#include "lock_client.h"
+#include "include/lock_client.h"
 #include <arpa/inet.h>
 #include <unistd.h>
 
+using namespace std::chrono;
+
 // must be >= 2
 const int nt = 6; //XXX: lab1's rpc handlers are blocking. Since rpcs uses a thread pool of 10 threads, we cannot test more than 10 blocking rpc.
 static lock_client *lc[nt];
@@ -65,7 +67,7 @@ static void test2(int i) {
     lc[i]->acquire(a);
     LOG_NONMEMBER << "test2: client " << i << " acquire done";
     check_grant(a);
-    std::this_thread::sleep_for(milliseconds(100));
+    std::this_thread::sleep_for(100ms);
     LOG_NONMEMBER << "test2: client " << i << " release";
     check_release(a);
     lc[i]->release(a);