examples/Base/IPC/condvar/condvarglobal/inc/subtractor.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 CSubtractor class.
00015 //
00016 
00017 
00018 
00022 #ifndef __SUBTRACTOR_H__
00023 #define __SUBTRACTOR_H__
00024 
00025 #include "sharedmem.h"
00026 
00032 class CSubtractor : public CActive
00033         {
00034 public:
00035         static CSubtractor* NewL(CConsoleBase* aConsole);
00036         void RunL();
00037         void DoCancel();
00038         ~CSubtractor();
00039         void StartTimer();
00040         void StopTimer();
00041         void ReadFunction();
00042         static TInt SubtractFunction(TAny* aPtr);
00043         void Subtract();
00044 private:
00045         CSubtractor();
00046         void ConstructL(CConsoleBase* aConsole);
00047 private:
00052         RCondVar iCondVar;
00056         RMutex iMutex;
00061         RChunk iChunk;
00066         CPeriodic* iPeriodic;
00070         CConsoleBase* iConsole;
00071         };
00072         
00073 #endif

Generated by  doxygen 1.6.2