From: Michael Jerris Date: Tue, 11 Nov 2008 15:30:52 +0000 (+0000) Subject: disable new sleep on windows X-Git-Tag: v1.0.2~574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f469375cdfc09c35df069eb9391006f218937a8;p=thirdparty%2Ffreeswitch.git disable new sleep on windows git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10332 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_time.c b/src/switch_time.c index 8c641619c4..3f8eec5c0f 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -408,8 +408,10 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime) switch_mutex_init(&TIMER_MATRIX[1].mutex, SWITCH_MUTEX_NESTED, module_pool); switch_thread_cond_create(&TIMER_MATRIX[1].cond, module_pool); +#ifndef WIN32 globals.use_cond_yield = globals.RUNNING == 1; - +#endif + while (globals.RUNNING == 1) { runtime.reference += STEP_MIC;