Public Member Functions | |
SessionCleaner (AppContext *ctx, int freq) | |
~SessionCleaner () | |
void | stop () |
virtual void | threadFunction () |
void | wakeUp () |
Private Attributes | |
bool | m_running |
int | m_freq |
AppContext * | m_ctx |
int | m_trigger [2] |
This is pipe used for triggering session cleaning. |
Definition at line 110 of file appcontext.h.
container::serverconfig::AppContext::AppContext::SessionCleaner::SessionCleaner | ( | AppContext * | ctx, | |
int | freq | |||
) |
Constructs session cleaner object. Opens a session cleaner trigger pipe.
Definition at line 398 of file appcontext.cpp.
References container::serverconfig::AppContext::AppContext::SessionCleaner::m_trigger.
container::serverconfig::AppContext::AppContext::SessionCleaner::~SessionCleaner | ( | ) |
Definition at line 421 of file appcontext.cpp.
References container::serverconfig::AppContext::AppContext::SessionCleaner::m_trigger.
void container::serverconfig::AppContext::AppContext::SessionCleaner::stop | ( | ) |
Politely stops session cleaner thread by telling it it should no longer run, and triggering it. If there is cleaning in progress it will not be interrupted.
Definition at line 447 of file appcontext.cpp.
References container::serverconfig::AppContext::AppContext::SessionCleaner::m_running, and container::serverconfig::AppContext::AppContext::SessionCleaner::wakeUp().
Referenced by container::serverconfig::AppContext::~AppContext().
void container::serverconfig::AppContext::AppContext::SessionCleaner::threadFunction | ( | ) | [virtual] |
Definition at line 426 of file appcontext.cpp.
References container::serverconfig::AppContext::cleanSessions(), container::serverconfig::AppContext::AppContext::SessionCleaner::m_ctx, container::serverconfig::AppContext::AppContext::SessionCleaner::m_freq, container::serverconfig::AppContext::AppContext::SessionCleaner::m_running, and container::serverconfig::AppContext::AppContext::SessionCleaner::m_trigger.
void container::serverconfig::AppContext::AppContext::SessionCleaner::wakeUp | ( | ) |
Wakes up session cleaning thread.
Definition at line 499 of file appcontext.cpp.
References container::serverconfig::AppContext::AppContext::SessionCleaner::m_trigger.
Referenced by container::serverconfig::AppContext::AppContext::SessionCleaner::stop().
AppContext* container::serverconfig::AppContext::AppContext::SessionCleaner::m_ctx [private] |
Definition at line 115 of file appcontext.h.
Referenced by container::serverconfig::AppContext::AppContext::SessionCleaner::threadFunction().
int container::serverconfig::AppContext::AppContext::SessionCleaner::m_freq [private] |
Definition at line 114 of file appcontext.h.
Referenced by container::serverconfig::AppContext::AppContext::SessionCleaner::threadFunction().
bool container::serverconfig::AppContext::AppContext::SessionCleaner::m_running [private] |
Definition at line 113 of file appcontext.h.
Referenced by container::serverconfig::AppContext::AppContext::SessionCleaner::stop(), and container::serverconfig::AppContext::AppContext::SessionCleaner::threadFunction().
int container::serverconfig::AppContext::AppContext::SessionCleaner::m_trigger[2] [private] |
This is pipe used for triggering session cleaning.
Definition at line 117 of file appcontext.h.
Referenced by container::serverconfig::AppContext::AppContext::SessionCleaner::SessionCleaner(), container::serverconfig::AppContext::AppContext::SessionCleaner::threadFunction(), container::serverconfig::AppContext::AppContext::SessionCleaner::wakeUp(), and container::serverconfig::AppContext::AppContext::SessionCleaner::~SessionCleaner().