TKN Logo SelfSoft Logo

Total Knowledge

SelfSoft, Inc.

CPPSERV

[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]

container::App::SessionCleaner Class Reference

Inheritance diagram for container::App::SessionCleaner:

Inheritance graph
[legend]
Collaboration diagram for container::App::SessionCleaner:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

bool running
int freq
Appctx
int trigger [2]
 This is pipe used for triggering session cleaning.

Detailed Description

Definition at line 55 of file App.h.


Constructor & Destructor Documentation

container::App::SessionCleaner::SessionCleaner ( App ctx,
int  freq 
)

Constructs session cleaner object. Opens a session cleaner trigger pipe.

Definition at line 287 of file App.cpp.

References trigger.

container::App::SessionCleaner::~SessionCleaner (  ) 

Definition at line 306 of file App.cpp.

References trigger.


Member Function Documentation

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]

Definition at line 311 of file App.cpp.

References container::App::cleanSessions(), ctx, freq, running, and trigger.

Here is the call graph for this function:

void container::App::SessionCleaner::wakeUp (  ) 

Wakes up session cleaning thread.

Definition at line 384 of file App.cpp.

References trigger.

Referenced by stop().


Member Data Documentation

Definition at line 58 of file App.h.

Referenced by stop(), and threadFunction().

Definition at line 59 of file App.h.

Referenced by threadFunction().

Definition at line 60 of file App.h.

Referenced by threadFunction().

This is pipe used for triggering session cleaning.

Definition at line 62 of file App.h.

Referenced by SessionCleaner(), threadFunction(), wakeUp(), and ~SessionCleaner().


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

SourceForge.net Logo

Authoright © Total Knowledge: 2001-2004