]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
adjust switch_yield times in switch_core_sql_db_thread() and pool_thread()
authorMathieu Rene <mrene@avgs.ca>
Thu, 18 Nov 2010 16:17:11 +0000 (11:17 -0500)
committerMathieu Rene <mrene@avgs.ca>
Thu, 18 Nov 2010 16:25:03 +0000 (11:25 -0500)
src/switch_core_memory.c
src/switch_core_sqldb.c

index 39d0403c4247bf14717d5450882c378d70207336..a63ce0d6f96a62afccfc52db9b06a78a7b0d4e55 100644 (file)
@@ -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);
                }
        }
 
index 509d9895813f4d178cc425cadaff22e96b32e039..89249e69a9e9ec7735365d8f7e941efd296b8566 100644 (file)
@@ -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);
        }