added: gc for sessions (another thread)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@693 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-12-07 12:52:52 +00:00
parent 7f77b6e3ec
commit 0a9cdd2f15
16 changed files with 434 additions and 393 deletions

View File

@@ -18,6 +18,7 @@
#include "request.h"
#include "lastcontainer.h"
#include "system.h"
#include "synchro.h"
@@ -35,7 +36,6 @@ class SessionManager
void CreateTemporarySession();
void CreateSession();
bool SetSessionFromCookie(const std::string & cookie);
int session_checker;
public:
@@ -45,10 +45,13 @@ public:
void SetConfig(Config * pconfig);
void SetSystem(System * psystem);
void SetLastContainer(LastContainer * plast_container);
void SetSynchro(Synchro * psynchro);
void SetSession();
void DeleteSessions(); // deleting all sessions
void DeleteOldSessions();
void StartGC();
void PrepareToStopGC();
void WaitForGC();
void LoadSessions();
void SaveSessions();