X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/ab6c1548ac2b1907bca92c8ce43e919c1a649a6f..refs/heads/iannucci:/lock_tester.cc?ds=inline diff --git a/lock_tester.cc b/lock_tester.cc index fbdeeb4..63c0722 100644 --- a/lock_tester.cc +++ b/lock_tester.cc @@ -2,10 +2,12 @@ // Lock server tester // -#include "lock_client.h" +#include "include/lock_client.h" #include #include +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);