mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 22:27:07 +00:00
Merge "taskprocessor: Enable subsystems and overload by subsystem" into 16
This commit is contained in:
@@ -690,7 +690,7 @@ struct stasis_subscription *internal_stasis_subscribe(
|
||||
char tps_name[AST_TASKPROCESSOR_MAX_NAME + 1];
|
||||
|
||||
/* Create name with seq number appended. */
|
||||
ast_taskprocessor_build_name(tps_name, sizeof(tps_name), "sub%c:%s",
|
||||
ast_taskprocessor_build_name(tps_name, sizeof(tps_name), "stasis/%c:%s",
|
||||
use_thread_pool ? 'p' : 'm',
|
||||
stasis_topic_name(topic));
|
||||
|
||||
@@ -2616,7 +2616,7 @@ int stasis_init(void)
|
||||
threadpool_opts.auto_increment = 1;
|
||||
threadpool_opts.max_size = cfg->threadpool_options->max_size;
|
||||
threadpool_opts.idle_timeout = cfg->threadpool_options->idle_timeout_sec;
|
||||
pool = ast_threadpool_create("stasis-core", NULL, &threadpool_opts);
|
||||
pool = ast_threadpool_create("stasis", NULL, &threadpool_opts);
|
||||
ao2_ref(cfg, -1);
|
||||
if (!pool) {
|
||||
ast_log(LOG_ERROR, "Failed to create 'stasis-core' threadpool\n");
|
||||
|
Reference in New Issue
Block a user