examples/PIPS/opencproducerconsumerex/src/stack.cpp

Go to the documentation of this file.
00001 
00014 // INCLUDE FILES
00015 #include "Stack.h"
00016 
00017 //Global Stack Object for maintaining all the produced items
00018 Stack stack;
00019 
00020 /*****************************************************************************
00021 *  CreateObserverThread
00022 *  Function: Functions to Push Items on to Stack and Pop items from Stack
00023 *  And also to delete Items
00024 *******************************************************************************/
00025 
00026 extern "C" 
00027 {
00028 
00029 void PushOntoStack( ProducedItem* aItem ) 
00030 {
00031         stack.Push(aItem);
00032 }
00033 
00034 ProducedItem* PopFromStack() 
00035 {
00036         return stack.Pop();
00037 }
00038 
00039 void FreeItem(ProducedItem* aItem) 
00040 {
00041         delete aItem;
00042 }
00043 
00044 } //extern "C"
00045 
00046 //  End of File

Generated by  doxygen 1.6.2