examples/Base/IPC/condvar/condvarglobal/inc/adder.h

Go to the documentation of this file.
00001 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 // Defines the CAdder class.
00015 //
00016 
00017 
00018 
00022 #ifndef __ADDER_H__
00023 #define __ADDER_H__
00024 
00025 #include "sharedmem.h"
00026 
00036 class CAdder : public CActive
00037         {
00038 public:
00039         static CAdder* NewL(CConsoleBase* aConsole);
00040         void RunL();
00041         void DoCancel();
00042         ~CAdder();
00043         void StartTimer();
00044         void StopTimer();
00045         void ReadFunction();
00046         static TInt AddFunction(TAny* aPtr);
00047         void Add();
00048 private:
00049         CAdder();
00050         void ConstructL(CConsoleBase* aConsole);
00051 private:
00056         RCondVar iCondVar;
00060         RMutex iMutex;
00065         RChunk iChunk;
00070         CPeriodic* iPeriodic;
00074         CConsoleBase* iConsole;
00075         };
00076 
00077 #endif

Generated by  doxygen 1.6.2