提交 011a5ccf authored 作者: Michael Jerris's avatar Michael Jerris

jrtp4c windows tweaks

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@962 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 896c8a1d
...@@ -290,18 +290,10 @@ ...@@ -290,18 +290,10 @@
Filter="h;hpp;hxx;hm;inl;inc;xsd" Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
> >
<File
RelativePath=".\src\jmutex.h"
>
</File>
<File <File
RelativePath=".\src\jrtp4c.h" RelativePath=".\src\jrtp4c.h"
> >
</File> </File>
<File
RelativePath=".\src\jthread.h"
>
</File>
<File <File
RelativePath=".\src\rtcpapppacket.h" RelativePath=".\src\rtcpapppacket.h"
> >
...@@ -484,18 +476,10 @@ ...@@ -484,18 +476,10 @@
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
> >
<File
RelativePath=".\src\win32\jmutex.cpp"
>
</File>
<File <File
RelativePath=".\src\jrtp4c.cpp" RelativePath=".\src\jrtp4c.cpp"
> >
</File> </File>
<File
RelativePath=".\src\win32\jthread.cpp"
>
</File>
<File <File
RelativePath=".\src\rtcpapppacket.cpp" RelativePath=".\src\rtcpapppacket.cpp"
> >
......
...@@ -143,8 +143,12 @@ void jrtp4c_destroy(struct jrtp4c **jrtp4c) ...@@ -143,8 +143,12 @@ void jrtp4c_destroy(struct jrtp4c **jrtp4c)
jrtp4c_killread(*jrtp4c); jrtp4c_killread(*jrtp4c);
while (((*jrtp4c)->flags & JF_READ) || ((*jrtp4c)->flags & JF_WRITE)) { while (((*jrtp4c)->flags & JF_READ) || ((*jrtp4c)->flags & JF_WRITE)) {
#ifdef WIN32
Sleep(1);
#else
usleep(1000); usleep(1000);
sched_yield(); sched_yield();
#endif
}; };
(*jrtp4c)->session->BYEDestroy(RTPTime(10,0),0,0); (*jrtp4c)->session->BYEDestroy(RTPTime(10,0),0,0);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define RTP_SUPPORT_IPV4MULTICAST #define RTP_SUPPORT_IPV4MULTICAST
#define RTP_SUPPORT_THREAD //#define RTP_SUPPORT_THREAD
#define RTP_SUPPORT_PROBATION #define RTP_SUPPORT_PROBATION
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论