S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

Producer Consumer Ex
MMP File for Producer Consumer Ex
Source Code for Producer Consumer Ex

 


Producer Consumer Ex

This example is a hybrid application that depicts a solution for the producer - consumer problem using Open C. This application uses main() as an entry point. It uses libc and libpthread.

 


MMP File for Producer Consumer Ex

TARGET          	OpenCProducerConsumerEx.exe
TARGETTYPE     	  EXE
UID             	0x100039CE 0xA0001318

SOURCEPATH        ..\data
START RESOURCE    OpenCProducerConsumerEx_reg.rss
#ifdef WINSCW
TARGETPATH 	      \private\10003a3f\apps
#else
TARGETPATH 	      \private\10003a3f\import\apps
#endif
END //RESOURCE

CAPABILITY      NONE
VENDORID     	  0
SOURCEPATH      ..\src
SOURCE          ProducerConsumer.c
SOURCE          Producer.c
SOURCE          Consumer.c
SOURCE          Observer.cpp
SOURCE          Stack.cpp
USERINCLUDE     ..\inc 
SYSTEMINCLUDE   \epoc32\include 

// These are needed for including Open C headers
// NOTE! When part of SDK, path will differ
SYSTEMINCLUDE   \epoc32\include\stdapis
// Using main() as entry point
STATICLIBRARY     libcrt0.lib
LIBRARY         	euser.lib
LIBRARY         	efsrv.lib
LIBRARY         	libc.lib
LIBRARY         	libpthread.lib
LANG              SC

 


Source Code for Producer Consumer Ex

Go to this location \nokia_plugin\openc\s60opencex\opencproducerconsumerex to view the source code for this example.

NOTE: This code has been tested on Carbide.

Give feedback of this article


Back to top

Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.