1 // this is the lock server
2 // the lock client has a similar interface
8 #include "lock_protocol.h"
9 #include "lock_client.h"
16 typedef map<lock_protocol::lockid_t, mutex> lock_map;
24 mutex &get_lock(lock_protocol::lockid_t lid);
29 lock_protocol::status stat(int clt, lock_protocol::lockid_t lid, int &);
30 lock_protocol::status acquire(int clt, lock_protocol::lockid_t lid, int &);
31 lock_protocol::status release(int clt, lock_protocol::lockid_t lid, int &);