CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::serverconfig::AppContext::AppContext::SessionCleaner Class Reference

Inheritance diagram for container::serverconfig::AppContext::AppContext::SessionCleaner:
Collaboration diagram for container::serverconfig::AppContext::AppContext::SessionCleaner:

List of all members.


Public Member Functions

 SessionCleaner (AppContext *ctx, int freq)
 ~SessionCleaner ()
void stop ()
virtual void threadFunction ()
void wakeUp ()

Private Attributes

bool m_running
int m_freq
AppContextm_ctx
int m_trigger [2]
 This is pipe used for triggering session cleaning.

Detailed Description

Definition at line 110 of file appcontext.h.


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

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().

Here is the call graph for this function:

void container::serverconfig::AppContext::AppContext::SessionCleaner::wakeUp (  ) 


Member Data Documentation

AppContext* container::serverconfig::AppContext::AppContext::SessionCleaner::m_ctx [private]

int container::serverconfig::AppContext::AppContext::SessionCleaner::m_freq [private]

bool container::serverconfig::AppContext::AppContext::SessionCleaner::m_running [private]


The documentation for this class was generated from the following files:

SourceForge.net Logo