|
Nokia N97 SDK Example Applications Guide |
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 observer.cpp.
#include <e32std.h>
#include <f32file.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <pthread.h>
#include "CommanHeader.h"
Go to the source code of this file.
Functions |
|
| _LIT (KObserverLogFile,"C:\\ObserverLogFile.txt") | |
| TInt | ObserverThreadL (TInt aNoOfMsg) |
| TInt | ObserverThreadEntryPoint (TAny *aParam) |
| void | CreateObserverThread (int aNoOfMsg) |
|
|
Declaration of Function that creats Observing Thread
Definition at line 119 of file observer.cpp. References ObserverThreadEntryPoint(). 00120 { 00121 RThread thread; 00122 TInt stackSize = 0x8000; //Set the stack size for this thread as 8K 00123 thread.Create(_L("ObserverThread"), ObserverThreadEntryPoint, stackSize, NULL, (TAny*)aNoOfMsg); 00124 TRequestStatus stat; 00125 thread.Logon(stat); 00126 00127 //Start executing the thread. 00128 thread.Resume(); 00129 00130 //Wait for the thread to Terminate. 00131 User::WaitForRequest(stat); 00132 }
|
|
© Nokia 2009 |