Rolled handle infrastructure into rpcc.
[invirt/third/libt4.git] / lock_tester.cc
index 58e691f..a546e09 100644 (file)
@@ -5,9 +5,6 @@
 #include "lock_client.h"
 #include <arpa/inet.h>
 #include <unistd.h>
-#include "handle.h"
-
-char log_thread_prefix = 'c';
 
 // 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.
@@ -115,6 +112,7 @@ static void test5(int i) {
 int
 main(int argc, char *argv[])
 {
+    global = new t4_state('c');
     thread th[nt];
     int test = 0;
 
@@ -183,9 +181,4 @@ main(int argc, char *argv[])
 
     for (int i = 0; i < nt; i++)
         delete lc[i];
-
-    handle::shutdown();
-    poll_mgr::shared_mgr.shutdown();
-
-    LOG_NONMEMBER << argv[0] << ": clean-up complete";
 }