Merge "taskprocessor: Enable subsystems and overload by subsystem" into 16

This commit is contained in:
Joshua C. Colp
2019-02-26 07:04:41 -06:00
committed by Gerrit Code Review
13 changed files with 523 additions and 10 deletions

View File

@@ -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");