diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-04-24 21:20:25 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-04-24 21:20:25 +0200 |
commit | a511d2d1ef5fa07dde601961fe9394b474aad5ae (patch) | |
tree | 9dd7321cba6303583d044cae95ea622e96b55d45 /include/erebos/sync.h | |
parent | 9aaba1211c95dc7e08437a7cca73452181e296d6 (diff) |
Behavior lens for shared refs from local state
Diffstat (limited to 'include/erebos/sync.h')
-rw-r--r-- | include/erebos/sync.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/erebos/sync.h b/include/erebos/sync.h index 0b9ed9a..dad4e0e 100644 --- a/include/erebos/sync.h +++ b/include/erebos/sync.h @@ -6,9 +6,12 @@ #include <optional> #include <mutex> +#include <vector> namespace erebos { +using std::vector; + class SyncService : public Service { public: @@ -22,11 +25,10 @@ public: private: void peerWatcher(size_t, const class Peer *); - void localStateWatcher(const Head<LocalState> &); + void localStateWatcher(const vector<Ref> &); const class Server * server; - std::mutex headMutex; - std::optional<WatchedHead<LocalState>> watchedHead; + std::optional<Watched<vector<Ref>>> watchedLocal; }; } |