From f92dd279a1e26dad7507d5d6944567c23834d440 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 27 May 2010 09:45:12 +0000 Subject: A lot of session handling. A lot of new unit tests. Add of a more structured commit/discard handling. Fix of some wierd line break bugs in journalwriter --- server/src/session.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/src/session.h') diff --git a/server/src/session.h b/server/src/session.h index 48c01d7..6c614c7 100644 --- a/server/src/session.h +++ b/server/src/session.h @@ -38,6 +38,7 @@ class JournalWriter; class Session { public: Session(std::string sessionid); + ~Session(); std::string id(); @@ -45,6 +46,7 @@ public: void unlock(); void commit(); + void discard(); JournalWriter *journal(); @@ -86,6 +88,11 @@ public: */ size_t size(); + /** + * Write all active sessions to disc. + */ + void store(); + private: std::map sessions; }; -- cgit v1.2.3