Public Member Functions | |
void | RunL () |
void | DoCancel () |
~CSubtractor () | |
void | StartTimer () |
void | StopTimer () |
void | ReadFunction () |
void | Subtract () |
Static Public Member Functions | |
static CSubtractor * | NewL (CConsoleBase *aConsole) |
static TInt | SubtractFunction (TAny *aPtr) |
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.
CSubtractor::~CSubtractor | ( | ) |
Destructor.
Definition at line 70 of file subtractor.cpp.
CSubtractor * CSubtractor::NewL | ( | CConsoleBase * | aConsole | ) | [static] |
Performs the two-phase construction of an object of the CAdder class.
aConsole | The console 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.
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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.