CSubtractor Class Reference

List of all members.

Public Member Functions

void RunL ()
void DoCancel ()
 ~CSubtractor ()
void StartTimer ()
void StopTimer ()
void ReadFunction ()
void Subtract ()

Static Public Member Functions

static CSubtractorNewL (CConsoleBase *aConsole)
static TInt SubtractFunction (TAny *aPtr)

Detailed Description

The subtractor class. This class opens the global chunk and periodically subtracts random values from it. The condition variable ensures that the value of the chunk is always greater than 0.

Definition at line 32 of file subtractor.h.

Constructor & Destructor Documentation

CSubtractor::~CSubtractor (  ) 


Definition at line 70 of file subtractor.cpp.

Member Function Documentation

CSubtractor * CSubtractor::NewL ( CConsoleBase *  aConsole  )  [static]

Performs the two-phase construction of an object of the CAdder class.

aConsole The console object.
A CSubtractor object.

Definition at line 30 of file subtractor.cpp.

void CSubtractor::RunL (  ) 

Handles the key press events from the console. It stops the active scheduler for any key press event.

Definition at line 43 of file subtractor.cpp.

void CSubtractor::DoCancel (  ) 

Cancel any outstanding request.

Definition at line 58 of file subtractor.cpp.

void CSubtractor::StartTimer (  ) 

Starts the timer object.

See also:

Definition at line 124 of file subtractor.cpp.

void CSubtractor::StopTimer (  ) 

Stops the timer object.

Definition at line 132 of file subtractor.cpp.

void CSubtractor::ReadFunction (  ) 

Issues an outstanding request to get a keystroke from the console.

Definition at line 111 of file subtractor.cpp.

TInt CSubtractor::SubtractFunction ( TAny *  aPtr  )  [static]

The call back function for the CSubtractor::iPeriodic object.

aPtr Contains the address of the object passed as an argument to the SubtractFunction().

Definition at line 143 of file subtractor.cpp.

void CSubtractor::Subtract (  ) 

Subtracts a random integer value from the global chunk.

Definition at line 156 of file subtractor.cpp.

Generated by  doxygen 1.6.2