Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
26 #define MAXTIMERLIMIT 512
27 #define DELAYTIMER_MAX 32
29 class CTimerReqHandler;
32 NONSHARABLE_CLASS(CLibRtTimer): public CTimer
35 CLibRtTimer():CTimer(EPriorityHigh)
42 void At(TTime aSetTime)
46 inline void Set(CRtTimer* CRtPtr)
50 inline CRtTimer* GetRtPtr()
60 class CRtTimer:public CBase
63 friend class CTimerReqHandler;
64 friend class CTimerServer;
65 friend class CLibRtTimer;
66 static CRtTimer* New(struct sigevent *aSig);
67 TInt SetTime(TInt aFlag, const struct itimerspec *aIpTime,
68 struct itimerspec *aOpTime);
69 TInt Time(struct itimerspec *aTime) const;
70 TInt OverrunCount(TInt& aOverrunCount) const;
74 CRtTimer(struct sigevent *aSig);
82 struct sigevent iSigEvent;
83 struct itimerspec iStartTime;
84 struct timespec iEndTime;