On 7/27/07, Alexander Boreham <[EMAIL PROTECTED]> wrote:
> I've started creating a patch file but am not sure how to handle the
> addition of new files (NonWin32Queue.cpp and NonWin32Queue.h) using 'svn
> diff' or how to make sure these are added to all the project files. As
> they're for Windows only I assume we can leave the Makefiles alone.

One way is to 'svn add' new files and then generate diff - new files will be
included. Other way is to create archive and put new files in it as is with
full paths (e.g. "sipXportLib\src\Wnt\...cpp").

> The following threads are explicitly set to be highest priority:
> m_hMessageThread, m_TimerThread. Also in the changes is one that makes
> threads created through OsTaskWnt to be given highest priority. I plan to
> undo this last change but don't know if I should also undo the first two
> priority changes. Again, I'll try undoing these on Monday and just checking
> everything still works okay. I can understand these two threads needing to
> be very responsive.

This part of patch set HIGHEST priority to ALL threads. I think it is not
necessarry at all. I would say it is horribly wrong.

Index: sipXportLib/src/os/Wnt/OsTaskWnt.cpp
===================================================================
--- sipXportLib/src/os/Wnt/OsTaskWnt.cpp    (revision 9892)
+++ sipXportLib/src/os/Wnt/OsTaskWnt.cpp    (working copy)
@@ -470,7 +470,9 @@
       // Unlike VxWorks, the priority is not an argument in the creation call,
       // so we have to set it explicitly ourselves.  To that end, we start
       // the thread "suspended" and release it after setting its priority.
-      setPriority(mPriority);
+      //setPriority(mPriority);
+      setPriority(THREAD_PRIORITY_HIGHEST);
+
       ResumeThread(mThreadH);
       return TRUE;
    }

Changes in sipXmediaLib/src/rtcp/RTCPTimer.cpp and
sipXmediaLib/src/rtcp/MsgQueue.cpp are doing strange things and seems
are not realted to sound cutting at all. Moreover they are Windows specific
and shuold not be here in generic code.

And what is this NonWin32Queue? Why sipXportLib primitives could not be
used for this?

-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to