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