Notification of about-to-expire status... almost there.
This commit is contained in:
parent
5c7e51feaf
commit
efe0e8aa7b
4 changed files with 24 additions and 18 deletions
|
@ -60,7 +60,7 @@ public:
|
|||
_dbs.push_back(db);
|
||||
}
|
||||
|
||||
std::vector<std::pair<uint64_t, uint64_t>> membersExpiringSoon();
|
||||
std::set< std::pair<uint64_t, uint64_t> > membersExpiringSoon();
|
||||
void memberExpiring(int64_t expTime, uint64_t nwid, uint64_t memberId);
|
||||
|
||||
private:
|
||||
|
@ -69,7 +69,7 @@ private:
|
|||
std::thread _syncCheckerThread;
|
||||
std::vector< std::shared_ptr< DB > > _dbs;
|
||||
mutable std::mutex _dbs_l;
|
||||
std::multimap< int64_t, std::pair<uint64_t, uint64_t> > _membersExpiringSoon;
|
||||
std::set< std::pair< int64_t, std::pair<uint64_t, uint64_t> > > _membersExpiringSoon;
|
||||
mutable std::mutex _membersExpiringSoon_l;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue