diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_consumer.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_consumer.html Tue Mar 30 11:56:28 2010 +0100 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_consumer.html Tue Mar 30 16:16:55 2010 +0100 @@ -1,66 +1,63 @@ - - -TB10.1 Example Applications: CConsumer Class Reference - - - - + + + + +TB9.2 Example Applications: CConsumer Class Reference + + + + + +

CConsumer Class Reference

-

-List of all members. - - - - - - -

Public Member Functions

void ConstructL (CConsoleBase *aConsole, CQueue *aTokens)
void ResumeCons ()
+

List of all members.

+ + + + + - - - - - - - - - - + + + + +

Public Member Functions

void ConstructL (CConsoleBase *aConsole, CQueue *aTokens)
void ResumeCons ()
void Consume ()
 ~CConsumer ()

Static Public Member Functions

static CConsumerNewL (CConsoleBase *aConsole, CQueue *aTokens)
static TInt ConsThreadFunc (TAny *aPtr)
static TInt RemoveFunction (TAny *aPtr)
 ~CConsumer ()

Static Public Member Functions

static CConsumerNewL (CConsoleBase *aConsole, CQueue *aTokens)
static TInt ConsThreadFunc (TAny *aPtr)
static TInt RemoveFunction (TAny *aPtr)
-

Detailed Description

-This class owns the consumer thread. It provides an interface to remove tokens from the CQueue::iArray queue.
See also:
CQueue.

+


Detailed Description

+

This class owns the consumer thread. It provides an interface to remove tokens from the CQueue::iArray queue.

+
See also:
CQueue.
+
CPeriodic.
-

Definition at line 34 of file consumer.h.

-

Constructor & Destructor Documentation

- +

Definition at line 34 of file consumer.h.

+

Constructor & Destructor Documentation

+
- + - + - +
CConsumer::~CConsumer CConsumer::~CConsumer (  ) 
+

Destructor.

-

-Destructor. -

Definition at line 111 of file consumer.cpp.

+

Definition at line 111 of file consumer.cpp.

-

-


Member Function Documentation

- + +

Member Function Documentation

+
- + @@ -74,31 +71,31 @@ - +
CConsumer * CConsumer::NewL CConsumer * CConsumer::NewL ( CConsoleBase *  aConsole,
) [static] [static]
- -

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

Parameters:
+

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

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

Definition at line 31 of file consumer.cpp.

+

Definition at line 31 of file consumer.cpp.

-

- + +

- + @@ -112,102 +109,105 @@ - +
void CConsumer::ConstructL void CConsumer::ConstructL ( CConsoleBase *  aConsole,
)
- -

-The second phase constructor of the CConsumer class. It creates the following member objects of the class:

    -
  • iPeriodicCons
  • iConsThread The call back function of the iPeriodicCons object - RemoveFunction() invokes the iConsThread every second.
    Parameters:
    +

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

    +
      +
    • iPeriodicCons
    • +
    • iConsThread The call back function of the iPeriodicCons object - RemoveFunction() invokes the iConsThread every second.
      Parameters:
      aConsole The console object.
      aTokens A pointer to the CQueue object containing the tokens' queue.
      +
      -
      See also:
      CPeriodic::Start().

      +

      See also:
      CPeriodic::Start().
      +
      RThread::Create().
      -
    +
  • +
-

Definition at line 51 of file consumer.cpp.

+

Definition at line 51 of file consumer.cpp.

-

- + +

- + - + - +
TInt CConsumer::ConsThreadFunc TInt CConsumer::ConsThreadFunc ( TAny *  aPtr aPtr  )  [static] [static]
- -

-The consumer thread function. It removes a token from the queue.

Parameters:
+

The consumer thread function. It removes a token from the queue.

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

Definition at line 82 of file consumer.cpp.

+

Definition at line 82 of file consumer.cpp.

-

- + +

- + - + - +
void CConsumer::ResumeCons void CConsumer::ResumeCons (  ) 
+

Resumes the execution of the consumer thread.

-

-Resumes the execution of the consumer thread. -

Definition at line 101 of file consumer.cpp.

+

Definition at line 101 of file consumer.cpp.

-

- + +

- + - + - +
TInt CConsumer::RemoveFunction TInt CConsumer::RemoveFunction ( TAny *  aPtr aPtr  )  [static] [static]
- -

-The call back function associated with the CPeriodic object of the CConsumer class.

See also:
CConsumer::ConstructL().

+

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

+
See also:
CConsumer::ConstructL().
+
CPeriodic.
-

Definition at line 123 of file consumer.cpp.

+

Definition at line 123 of file consumer.cpp.

-

-


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