diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_producer.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_producer.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,256 @@ + + +TB10.1 Example Applications: CProducer Class Reference + + + + +

CProducer Class Reference

+

+List of all members. + + + + + + + + + + + + + + + + + + + +

Public Member Functions

void ConstructL (CConsoleBase *aConsole, CQueue *aTokens)
void ResumeProd ()
void Display ()
void Produce ()
 ~CProducer ()

Static Public Member Functions

static CProducerNewL (CConsoleBase *aConsole, CQueue *aTokens)
static TInt ProdThreadFunc (TAny *aPtr)
static TInt InsertFunction (TAny *aPtr)
+


Detailed Description

+This class owns the producer thread. It provides an interface to insert tokens into the CQueue::iArray queue.
See also:
CQueue.

+CPeriodic.

+ +

Definition at line 34 of file producer.h.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + +
CProducer::~CProducer (  ) 
+
+
+ +

+Destructor. +

Definition at line 146 of file producer.cpp.

+ +
+

+


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
CProducer * CProducer::NewL (CConsoleBase *  aConsole,
CQueue aTokens 
) [static]
+
+
+ +

+Performs the two-phase construction of an object of the CProducer class.

Parameters:
+ + + +
aConsole The console object.
aTokens A pointer to the CQueue object containing the tokens' queue.
+
+
Returns:
A CProducer object.
+ +

Definition at line 31 of file producer.cpp.

+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
void CProducer::ConstructL (CConsoleBase *  aConsole,
CQueue aTokens 
)
+
+
+ +

+The second phase constructor of the CProducer class. It creates the following member objects of the class:

+ +

Definition at line 51 of file producer.cpp.

+ +
+

+ +

+
+ + + + + + + + + +
TInt CProducer::ProdThreadFunc (TAny *  aPtr  )  [static]
+
+
+ +

+The producer thread function. It inserts a token into the queue.

Parameters:
+ + +
aPtr A pointer to the arguments passed to the thread function.
+
+ +

Definition at line 109 of file producer.cpp.

+ +
+

+ +

+
+ + + + + + + + +
void CProducer::ResumeProd (  ) 
+
+
+ +

+Resumes the execution of the producer thread. +

Definition at line 127 of file producer.cpp.

+ +
+

+ +

+
+ + + + + + + + +
void CProducer::Display (  ) 
+
+
+ +

+Displays the contents of the queue. +

Definition at line 79 of file producer.cpp.

+ +
+

+ +

+
+ + + + + + + + +
void CProducer::Produce (  ) 
+
+
+ +

+Produce a token. +

Definition at line 137 of file producer.cpp.

+ +
+

+ +

+
+ + + + + + + + + +
TInt CProducer::InsertFunction (TAny *  aPtr  )  [static]
+
+
+ +

+The call back function associated with the CPeriodic object of the CProducer class.

See also:
CProducer::iPeriodicProd.

+CPeriodic.

+ +

Definition at line 158 of file producer.cpp.

+ +
+

+


Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by  + +doxygen 1.5.3
+ +