[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-client-cvs
Subject: [Client-cvs] medpltfm/pub chxmedpltfmkicker.h, 1.4,
From: xzhao () helixcommunity ! org
Date: 2011-05-25 3:35:09
Message-ID: 201105250335.p4P3ZUEr010645 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/client/medpltfm/pub
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv25869/pub
Modified Files:
chxmedpltfmkicker.h chxmedpltfmsched.h
Log Message:
Add a new kicker's mechanism so change this logic to "Kick() return as its interval \
parameter the delta to the most recent event in all scheduler queue. And the Wait \
should be timed out based on that value", until it is wake up. Once it is signaled, \
re-check time delta to most recent event and adjust waiting time and then \
wait(Actually this is what we have now).
Index: chxmedpltfmkicker.h
===================================================================
RCS file: /cvsroot/client/medpltfm/pub/chxmedpltfmkicker.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- chxmedpltfmkicker.h 6 Jul 2007 21:58:21 -0000 1.4
+++ chxmedpltfmkicker.h 25 May 2011 03:35:06 -0000 1.5
@@ -62,10 +62,12 @@
class CHXMediaPlatformKicker : public CUnknownIMP
, public IHXContextUser
, public IHXMediaPlatformKicker
+ , public IHXMediaPlatformKicker2
{
protected:
IUnknown* m_pContext;
IHXMutex* m_pMutex;
+ IHXEvent* m_pWaitEvent;
HXBOOL m_bClosed;
CHXMapLongToObj* m_pSchedulerMap;
CHXMapLongToObj m_SchedTimerMap;
@@ -94,6 +96,19 @@
UINT32 ulThreadID,
UINT32* pulSuggestedSleep);
+ /*
+ * IHXMediaPlatformKicker2 methods
+ * see common/include/ihxmedpltfm.h for detail description
+ */
+ STDMETHOD(StartOnDemandKick) (THIS_
+ UINT32 ulThreadID);
+ STDMETHOD(Kick2) (THIS_
+ UINT32 ulThreadID,
+ UINT32* pulSuggestedSleep);
+ STDMETHOD(Wait2) (THIS_
+ UINT32 ulThreadID,
+ UINT32 ulDueTime);
+
HX_RESULT Close(void);
};
Index: chxmedpltfmsched.h
===================================================================
RCS file: /cvsroot/client/medpltfm/pub/chxmedpltfmsched.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- chxmedpltfmsched.h 15 Sep 2010 19:00:19 -0000 1.8
+++ chxmedpltfmsched.h 25 May 2011 03:35:06 -0000 1.9
@@ -122,6 +122,9 @@
HX_RESULT Init(IUnknown* pContext);
HX_RESULT AttachKicker(CHXMediaPlatformKicker* pKicker);
HX_RESULT DetachKicker(CHXMediaPlatformKicker* pKicker);
+ HX_RESULT SetWaitEvent(IHXEvent* pEvent);
+ UINT32 GetCBDueTimeInMs();
+ HXBOOL IsEmpty();
};
#endif /* _CHXMEDPLTFMSCHED_H_ */
_______________________________________________
Client-cvs mailing list
Client-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/client-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic