[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-video-cvs
Subject:    [Video-cvs] sitelib/pub basesite.h,1.12,1.13
From:       ping () helixcommunity ! org
Date:       2006-02-23 22:34:10
[Download RAW message or body]

Update of /cvsroot/video/sitelib/pub
In directory cvs:/tmp/cvs-serv9292/sitelib/pub

Modified Files:
	basesite.h 
Log Message:
Description
--------------------------------
HXThread implements x-platform thread support, but there is no interface for it. We \
have interfaces for other system objects such as scheduler and mutex etc, it seems to \
be a good interface to have. 

The cleanup involves:
1. Create IHXThread and CLSID_IHXThread.
2. Created chxthread.cpp&chxthread.h in common/system, it's a wrapper class that \
supports IHXThread and wraps the platform specific thread implementation. 3. Added \
CLSID_IHXThread to Helix media platform's CCF. 4. Modified certain method to pass \
context to the object that creates thread. 5. Moved GetCurrentThreadID() out of the \
Thread class, replaced it with global function HXGetCurrentThreadID(). 6. Replaced \
the following line:  rc = HXThread::MakeThread(m_pThread);
   with
   rc = CreateInstanceCCF(CLSID_IHXThread, (void**)&m_pThread, m_pContext); 7. \
Replaced "HX_DELETE(m_pThread)" with "HX_RELEASE(m_pThread)".

8. Added OnTimeSync() to IHXScheduler2 to fix build buster.

In addition:

9. Defined CLSID_IHXPaceMaker and add it to CCF.
10. Use CreateInstanceCCF to create VideoPaceMaker instead of new it.

CR by Eric


Index: basesite.h
===================================================================
RCS file: /cvsroot/video/sitelib/pub/basesite.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- basesite.h	16 Feb 2006 23:08:38 -0000	1.12
+++ basesite.h	23 Feb 2006 22:34:08 -0000	1.13
@@ -1118,7 +1118,7 @@
     
     INT32      m_nTLSMutexLockCount;
     UINT32     m_ulTLSMutexOwningThread;
-    HXThread* m_pDummyThread;
+    IHXThread* m_pDummyThread;
     HXBOOL       m_bMoving;
     HXBOOL       m_bUserWantsSubRects;
     HXBOOL       m_bSiteScalingInfo;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic