Author: kmoore
Date: Thu Aug 1 14:54:27 2013
New Revision: 396024
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396024
Log:
Further expound on the meaning of 0 and expose the auto_increment value to the
configuration
Modified:
team/kmoore/res_sip_threadpool_options/res/res_pjsip.c
team/kmoore/res_sip_threadpool_options/res/res_pjsip/config_system.c
Modified: team/kmoore/res_sip_threadpool_options/res/res_pjsip.c
URL:
http://svnview.digium.com/svn/asterisk/team/kmoore/res_sip_threadpool_options/res/res_pjsip.c?view=diff&rev=396024&r1=396023&r2=396024
==============================================================================
--- team/kmoore/res_sip_threadpool_options/res/res_pjsip.c (original)
+++ team/kmoore/res_sip_threadpool_options/res/res_pjsip.c Thu Aug 1 14:54:27
2013
@@ -938,11 +938,15 @@
<configOption name="threadpool_initial_size"
default="0">
<synopsis>Initial number of threads in
the res_pjsip threadpool.</synopsis>
</configOption>
+ <configOption name="threadpool_auto_increment"
default="5">
+ <synopsis>The amount by which the
number of threads is incremented when necessary.</synopsis>
+ </configOption>
<configOption name="threadpool_idle_timeout"
default="60">
<synopsis>Number of seconds before an
idle thread should be disposed of.</synopsis>
</configOption>
<configOption name="threadpool_max_size"
default="0">
- <synopsis>Maximum number of threads in
the res_pjsip threadpool.</synopsis>
+ <synopsis>Maximum number of threads in
the res_pjsip threadpool.
+ A value of 0 indicates no
maximum.</synopsis>
</configOption>
</configObject>
<configObject name="global">
Modified: team/kmoore/res_sip_threadpool_options/res/res_pjsip/config_system.c
URL:
http://svnview.digium.com/svn/asterisk/team/kmoore/res_sip_threadpool_options/res/res_pjsip/config_system.c?view=diff&rev=396024&r1=396023&r2=396024
==============================================================================
--- team/kmoore/res_sip_threadpool_options/res/res_pjsip/config_system.c
(original)
+++ team/kmoore/res_sip_threadpool_options/res/res_pjsip/config_system.c Thu
Aug 1 14:54:27 2013
@@ -41,6 +41,8 @@
struct {
/*! Initial number of threads in the threadpool */
int initial_size;
+ /*! The amount by which the number of threads is incremented
when necessary */
+ int auto_increment;
/*! Thread idle timeout in seconds */
int idle_timeout;
/*! Maxumum number of threads in the threadpool */
@@ -100,6 +102,7 @@
}
sip_threadpool_options.initial_size = system->threadpool.initial_size;
+ sip_threadpool_options.auto_increment =
system->threadpool.auto_increment;
sip_threadpool_options.idle_timeout = system->threadpool.idle_timeout;
sip_threadpool_options.max_size = system->threadpool.max_size;
@@ -133,6 +136,8 @@
OPT_BOOL_T, 1, FLDSET(struct system_config,
compactheaders));
ast_sorcery_object_field_register(system_sorcery, "system",
"threadpool_initial_size", "0",
OPT_UINT_T, 0, FLDSET(struct system_config,
threadpool.initial_size));
+ ast_sorcery_object_field_register(system_sorcery, "system",
"threadpool_auto_increment", "5",
+ OPT_UINT_T, 0, FLDSET(struct system_config,
threadpool.auto_increment));
ast_sorcery_object_field_register(system_sorcery, "system",
"threadpool_idle_timeout", "60",
OPT_UINT_T, 0, FLDSET(struct system_config,
threadpool.idle_timeout));
ast_sorcery_object_field_register(system_sorcery, "system",
"threadpool_max_size", "0",
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits