diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-01-15 19:44:25 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-01-15 19:44:25 +0000 |
commit | c6bc51ef28a79303500ab541684e8adc331cc662 (patch) | |
tree | 47eec8e82823f419b3179a25517721f250c97ab4 /main/threadpool.c | |
parent | edc2e4dac0a6d532957fd27b6b784232cf2ae55c (diff) |
Make the initial size of the threadpool part of the options passed in.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/threadpool.c')
-rw-r--r-- | main/threadpool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index f37095364..358184caa 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -828,7 +828,7 @@ struct pool_options_pair { struct ast_threadpool *ast_threadpool_create(const char *name, struct ast_threadpool_listener *listener, - int initial_size, const struct ast_threadpool_options *options) + const struct ast_threadpool_options *options) { struct ast_taskprocessor *tps; RAII_VAR(struct ast_taskprocessor_listener *, tps_listener, NULL, ao2_cleanup); @@ -858,7 +858,7 @@ struct ast_threadpool *ast_threadpool_create(const char *name, ao2_ref(listener, +1); pool->listener = listener; } - ast_threadpool_set_size(pool, initial_size); + ast_threadpool_set_size(pool, pool->options.initial_size); ao2_ref(pool, +1); return pool; } |