More cleaning
[invirt/third/libt4.git] / lock_server.h
index 2aa8445..381c527 100644 (file)
@@ -1,33 +1,22 @@
 #ifndef lock_server_h
 #define lock_server_h
 
-#include <string>
-
-#include <map>
-#include <vector>
+#include "types.h"
 #include "lock_protocol.h"
-#include "rpc/rpc.h"
-#include "rsm_state_transfer.h"
 #include "rsm.h"
 #include "rpc/fifo.h"
-#include "lock.h"
-
-using std::string;
-using std::pair;
-using std::list;
-using std::map;
 
-typedef string callback;
-typedef pair<callback, lock_protocol::xid_t> holder;
+typedef string callback_t;
+typedef pair<callback_t, lock_protocol::xid_t> holder_t;
 
 class lock_state {
 public:
     lock_state();
     lock_state(const lock_state &other);
     bool held;
-    holder held_by;
-    list<holder> wanted_by;
-    map<callback, lock_protocol::xid_t> old_requests;
+    holder_t held_by;
+    list<holder_t> wanted_by;
+    map<callback_t, lock_protocol::xid_t> old_requests;
     mutex m;
     lock_state& operator=(const lock_state&);
 };