[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "x_safe_constructors" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Jul 18 11:47:02 CDT 2012


branch "x_safe_constructors" has been updated
       via  34cf80f54a88569ae1894c2821d41d17945a324f (commit)
      from  e6b65c10643898b1ac0109a3f42bc3ef09753cbe (commit)

Summary of changes:
 src/PJSIPSessionModule.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 34cf80f54a88569ae1894c2821d41d17945a324f
Author: Brent Eagles <beagles at digium.com>
Date:   Wed Jul 18 14:16:04 2012 -0230

    Add some logging to one of the methods that can alter the thread pool but does not yet have logging.

diff --git a/src/PJSIPSessionModule.cpp b/src/PJSIPSessionModule.cpp
index bc009ae..5affc20 100644
--- a/src/PJSIPSessionModule.cpp
+++ b/src/PJSIPSessionModule.cpp
@@ -2362,8 +2362,13 @@ void PJSIPSessionModuleThreadPoolListener::stateChanged(const PoolPtr& pool, Ice
     //For now, what we do is kill all idle threads.
     if (idle > 0)
     {
+        lg(Debug) << "idle threads available, increasing pool size to match active threads. A: " << active << " I: " << idle;
         pool->setSize((int) active);
     }
+    else
+    { 
+        lg(Debug) <<  "No current idle threads, the number of active threads is " << active;
+    }
     mActiveThreads = active;
 }
 

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list