X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/ba03b19875aa2e3586e49b10904563cdd3b91de0..4e881433f37417ccbda89c09ffdf936855d462d4:/lock_client.h diff --git a/lock_client.h b/lock_client.h index 5db2cbf..73dfffe 100644 --- a/lock_client.h +++ b/lock_client.h @@ -42,9 +42,10 @@ typedef map lock_map; // lock_revoke_server. class lock_client { private: - rpcc *cl; + unique_ptr cl; + unique_ptr rlsrpc; thread releaser_thread; - rsm_client *rsmc; + unique_ptr rsmc; lock_release_user *lu; in_port_t rlock_port; string hostname; @@ -62,7 +63,7 @@ class lock_client { lock_protocol::status acquire(lock_protocol::lockid_t); lock_protocol::status release(lock_protocol::lockid_t); int stat(lock_protocol::lockid_t); - void releaser(); + void releaser NORETURN (); rlock_protocol::status revoke_handler(int &, lock_protocol::lockid_t, lock_protocol::xid_t); rlock_protocol::status retry_handler(int &, lock_protocol::lockid_t, lock_protocol::xid_t); };