diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_producer.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_producer.html Tue Mar 30 11:56:28 2010 +0100 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_producer.html Tue Mar 30 16:16:55 2010 +0100 @@ -1,67 +1,63 @@ - -
-Public Member Functions | ||||||||
void | ConstructL (CConsoleBase *aConsole, CQueue *aTokens) | |||||||
void | ResumeProd () | |||||||
void | Display () | |||||||
void | Produce () | |||||||
~CProducer () | ||||||||
Static Public Member Functions | ||||||||
static CProducer * | NewL (CConsoleBase *aConsole, CQueue *aTokens) | |||||||
static TInt | ProdThreadFunc (TAny *aPtr) | |||||||
static TInt | InsertFunction (TAny *aPtr) |
Public Member Functions | |
void | ConstructL (CConsoleBase *aConsole, CQueue *aTokens) |
void | ResumeProd () |
void | Display () |
void | Produce () |
~CProducer () | |
Static Public Member Functions | |
static CProducer * | NewL (CConsoleBase *aConsole, CQueue *aTokens) |
static TInt | ProdThreadFunc (TAny *aPtr) |
static TInt | InsertFunction (TAny *aPtr) |
+
This class owns the producer thread. It provides an interface to insert tokens into the CQueue::iArray queue.
+Definition at line 34 of file producer.h.
-Definition at line 34 of file producer.h.
+CProducer::~CProducer | +CProducer::~CProducer | ( | -+ | ) | -+ |
Destructor.
--Destructor. -
Definition at line 146 of file producer.cpp.
+Definition at line 146 of file producer.cpp.
-
CProducer * CProducer::NewL | +CProducer * CProducer::NewL | ( | CConsoleBase * | aConsole, | @@ -75,31 +71,31 @@|||
) | - [static] |
+ [static] |
-Performs the two-phase construction of an object of the CProducer class.
Performs the two-phase construction of an object of the CProducer class.
+aConsole | The console object. | |
aTokens | A pointer to the CQueue object containing the tokens' queue. |
Definition at line 31 of file producer.cpp.
+Definition at line 31 of file producer.cpp.
void CProducer::ConstructL | +void CProducer::ConstructL | ( | CConsoleBase * | aConsole, | @@ -113,144 +109,145 @@|||
) | -+ |
-The second phase constructor of the CProducer class. It creates the following member objects of the class:
The second phase constructor of the CProducer class. It creates the following member objects of the class:
+aConsole | The console object. | |
aTokens | A pointer to the CQueue object containing the tokens' queue. |
+
Definition at line 51 of file producer.cpp.
+Definition at line 51 of file producer.cpp.
TInt CProducer::ProdThreadFunc | +TInt CProducer::ProdThreadFunc | ( | TAny * | -aPtr | +aPtr | ) | - [static] |
+ [static] |
-The producer thread function. It inserts a token into the queue.
The producer thread function. It inserts a token into the queue.
+aPtr | A pointer to the arguments passed to the thread function. |
Definition at line 109 of file producer.cpp.
+Definition at line 109 of file producer.cpp.
void CProducer::ResumeProd | +void CProducer::ResumeProd | ( | -+ | ) | -+ |
Resumes the execution of the producer thread.
--Resumes the execution of the producer thread. -
Definition at line 127 of file producer.cpp.
+Definition at line 127 of file producer.cpp.
void CProducer::Display | +void CProducer::Display | ( | -+ | ) | -+ |
Displays the contents of the queue.
--Displays the contents of the queue. -
Definition at line 79 of file producer.cpp.
+Definition at line 79 of file producer.cpp.
void CProducer::Produce | +void CProducer::Produce | ( | -+ | ) | -+ |
Produce a token.
--Produce a token. -
Definition at line 137 of file producer.cpp.
+Definition at line 137 of file producer.cpp.
TInt CProducer::InsertFunction | +TInt CProducer::InsertFunction | ( | TAny * | -aPtr | +aPtr | ) | - [static] |
+ [static] |
-The call back function associated with the CPeriodic object of the CProducer class.
+
The call back function associated with the CPeriodic object of the CProducer class.
+Definition at line 158 of file producer.cpp.
+Definition at line 158 of file producer.cpp.
-