X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/a5f10a497bebfc680bf418193f1fd9f1ad7cc417..b2609562b3d4fc548afcc0a3dfe4ff5fd4ae3d36:/rsm.h diff --git a/rsm.h b/rsm.h index 1e1726d..8fdf2d5 100644 --- a/rsm.h +++ b/rsm.h @@ -21,7 +21,7 @@ class rsm : public config_view_change { void reg1(int proc, handler *); protected: map procs; - config *cfg; + unique_ptr cfg; rsm_state_transfer *stf = nullptr; rpcs *rsmrpc; // On slave: expected viewstamp of next invoke request @@ -36,7 +36,7 @@ class rsm : public config_view_change { vector backups; // A list of unsynchronized backups // For testing purposes - rpcs *testsvr; + unique_ptr testsvr; bool partitioned; bool dopartition; bool break1; @@ -76,6 +76,8 @@ class rsm : public config_view_change { void commit_change(unsigned vid); template void reg(int proc, F f, C *c=nullptr); + + void start(); }; template void rsm::reg(int proc, F f, C *c) {