From 2f469375cdfc09c35df069eb9391006f218937a8 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 11 Nov 2008 15:30:52 +0000 Subject: [PATCH] disable new sleep on windows git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10332 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;