Nokia N97 SDK
Example Applications Guide

stack.cpp File Reference


Detailed Description

Part of : Open C / ProducerConsumer

Description : ProducerConsumer Problem solution Version : 0.1

Copyright (c) 2007 Nokia Corporation. This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia Corporation.

Definition in file stack.cpp.

#include "Stack.h"

Go to the source code of this file.


Functions

void  PushOntoStack (ProducedItem *aItem)
ProducedItem *  PopFromStack ()
void  FreeItem (ProducedItem *aItem)

Variables

Stack  stack


Function Documentation

void PushOntoStack (  ProducedItem *  aItem  ) 
 

Declaration of Function that Push Item onto Stack

Parameters:
aItem  - Item to be pushed
Returns:
Nothing

Definition at line 29 of file stack.cpp.

References Stack::Push().

Referenced by ProducerThreadEntryPoint().

00030 {
00031         stack.Push(aItem);
00032 }

ProducedItem* PopFromStack (   ) 
 

Declaration of Function that Pop Item from Stack

Returns:
aItem - Item Poped

Definition at line 34 of file stack.cpp.

References Stack::Pop().

Referenced by ConsumerThreadEntryPoint().

00035 {
00036         return stack.Pop();
00037 }

void FreeItem (  ProducedItem *  aItem  ) 
 

Declaration of Function that frees up Item

Parameters:
aItem  - Item to be Deleted
Returns:
Nothing

Definition at line 39 of file stack.cpp.

Referenced by ConsumerThreadEntryPoint().

00040 {
00041         delete aItem;
00042 }


© Nokia 2009

Back to top