From: Mathieu Rene Date: Thu, 18 Nov 2010 16:17:11 +0000 (-0500) Subject: adjust switch_yield times in switch_core_sql_db_thread() and pool_thread() X-Git-Tag: v1.2-rc1~265^2~4^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7c7f1323d64c255b88f13610fc9c0341f86dc1;p=thirdparty%2Ffreeswitch.git adjust switch_yield times in switch_core_sql_db_thread() and pool_thread() --- diff --git a/src/switch_core_memory.c b/src/switch_core_memory.c index 39d0403c42..a63ce0d6f9 100644 --- a/src/switch_core_memory.c +++ b/src/switch_core_memory.c @@ -548,7 +548,7 @@ static void *SWITCH_THREAD_FUNC pool_thread(switch_thread_t *thread, void *obj) goto done; } } else { - switch_yield(100000); + switch_yield(1000000); } } diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 509d989581..89249e69a9 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -898,7 +898,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_db_thread(switch_thread_t *threa wake_thread(0); sec = 0; } - switch_yield(1000); + switch_yield(1000000); }