X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/2546a41ad36fdc9ef6471cb35a1d56930ae1b527..46fb2b4bbe3a0a8516ab04cfafa895a882c70f86:/lock_client.cc?ds=sidebyside diff --git a/lock_client.cc b/lock_client.cc index 22e57f1..99dcb5b 100644 --- a/lock_client.cc +++ b/lock_client.cc @@ -1,14 +1,8 @@ // RPC stubs for clients to talk to lock_server, and cache the locks. #include "lock_client.h" -#include "rpc/rpc.h" -#include -#include "threaded_log.h" #include -#include "rsm_client.h" -#include "lock.h" - void lock_state::wait(lock & mutex_lock) { auto self = std::this_thread::get_id(); c[self].wait(mutex_lock); @@ -42,7 +36,7 @@ lock_client::lock_client(string xdst, class lock_release_user *_lu) : lu(_lu), n srandom((uint32_t)time(NULL)^last_port); rlock_port = ((random()%32000) | (0x1 << 10)); - id = "127.0.0.1:" + std::to_string(rlock_port); + id = "127.0.0.1:" + to_string(rlock_port); last_port = rlock_port; rpcs *rlsrpc = new rpcs(rlock_port); rlsrpc->reg(rlock_protocol::revoke, &lock_client::revoke_handler, this);