X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/5a5c578e2e358a121cdb9234a6cb11c4ecfbf323..b2609562b3d4fc548afcc0a3dfe4ff5fd4ae3d36:/handle.h?ds=sidebyside diff --git a/handle.h b/handle.h index a513b56..f4df61a 100644 --- a/handle.h +++ b/handle.h @@ -1,5 +1,5 @@ // manage a cache of RPC connections. -// assuming cid is a std::string holding the +// assuming cid is a string holding the // host:port of the RPC server you want // to talk to: // @@ -30,10 +30,9 @@ class hinfo; class handle { private: - hinfo *h; + shared_ptr h; public: handle(const string & m); - ~handle(); /* safebind will try to bind with the rpc server on the first call. * Since bind may block, the caller probably should not hold a mutex * when calling safebind. @@ -53,6 +52,8 @@ class handle { * } */ rpcc *safebind(); + + void invalidate(); }; void invalidate_handle(const string & m);