From 011a5ccf12a33d28ef7eefd61a324f9f19a01207 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 29 Mar 2006 19:48:50 +0000 Subject: [PATCH] jrtp4c windows tweaks git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@962 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/jrtplib/jrtplib.vcproj | 16 ---------------- libs/jrtplib/src/jrtp4c.cpp | 4 ++++ libs/jrtplib/src/rtpconfig_win.h | 2 +- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/libs/jrtplib/jrtplib.vcproj b/libs/jrtplib/jrtplib.vcproj index a383a8abc0..cce60ff682 100644 --- a/libs/jrtplib/jrtplib.vcproj +++ b/libs/jrtplib/jrtplib.vcproj @@ -290,18 +290,10 @@ Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > - - - - @@ -484,18 +476,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > - - - - diff --git a/libs/jrtplib/src/jrtp4c.cpp b/libs/jrtplib/src/jrtp4c.cpp index dfeb215b35..9a6b34a57a 100644 --- a/libs/jrtplib/src/jrtp4c.cpp +++ b/libs/jrtplib/src/jrtp4c.cpp @@ -143,8 +143,12 @@ void jrtp4c_destroy(struct jrtp4c **jrtp4c) jrtp4c_killread(*jrtp4c); while (((*jrtp4c)->flags & JF_READ) || ((*jrtp4c)->flags & JF_WRITE)) { +#ifdef WIN32 + Sleep(1); +#else usleep(1000); sched_yield(); +#endif }; (*jrtp4c)->session->BYEDestroy(RTPTime(10,0),0,0); diff --git a/libs/jrtplib/src/rtpconfig_win.h b/libs/jrtplib/src/rtpconfig_win.h index 43602664ec..1ca60d502e 100644 --- a/libs/jrtplib/src/rtpconfig_win.h +++ b/libs/jrtplib/src/rtpconfig_win.h @@ -36,7 +36,7 @@ #define RTP_SUPPORT_IPV4MULTICAST -#define RTP_SUPPORT_THREAD +//#define RTP_SUPPORT_THREAD #define RTP_SUPPORT_PROBATION