[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]
Public Member Functions | |
SessionCleaner (App *ctx, int freq) | |
~SessionCleaner () | |
void | stop () |
virtual void | threadFunction () |
void | wakeUp () |
Private Attributes | |
bool | running |
int | freq |
App * | ctx |
int | trigger [2] |
This is pipe used for triggering session cleaning. |
Definition at line 55 of file App.h.
container::App::SessionCleaner::SessionCleaner | ( | App * | ctx, | |
int | freq | |||
) |
container::App::SessionCleaner::~SessionCleaner | ( | ) |
void container::App::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 332 of file App.cpp.
References running, and wakeUp().
Referenced by container::App::~App().
Here is the call graph for this function:
void container::App::SessionCleaner::threadFunction | ( | ) | [virtual] |
void container::App::SessionCleaner::wakeUp | ( | ) |
bool container::App::SessionCleaner::running [private] |
int container::App::SessionCleaner::freq [private] |
App* container::App::SessionCleaner::ctx [private] |
int container::App::SessionCleaner::trigger[2] [private] |
This is pipe used for triggering session cleaning.
Definition at line 62 of file App.h.
Referenced by SessionCleaner(), threadFunction(), wakeUp(), and ~SessionCleaner().