diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-12-10 20:14:23 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-12-10 20:14:23 +0000 |
commit | 1310e659bd0b4b0ce8210b5b1318ae71d86b85e2 (patch) | |
tree | 8e097572cfef1f0b05602f7ef17ec10f4fb3c439 /include/asterisk | |
parent | 90d76a50263a6ff509d2b26c9953c2d700854a9b (diff) |
Solve the issue about the "CHANGE THIS" and "XXX CHANGE THIS XXX" taskprocessor names.
Unfortunately, this required a taskprocessor listener change that makes listener allocation
utterly silly. I'm going to change the scheme so that allocation of taskprocessor listeners
is done internally within taskprocessor code. This will make it parallel with threadpool
code, which is a good thing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/threadpool.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/threadpool.h b/include/asterisk/threadpool.h index 3f3634129..9834d9180 100644 --- a/include/asterisk/threadpool.h +++ b/include/asterisk/threadpool.h @@ -113,12 +113,14 @@ struct ast_threadpool_listener *ast_threadpool_listener_alloc( * This function creates a threadpool. Tasks may be pushed onto this thread pool * in and will be automatically acted upon by threads within the pool. * + * \param name The name for the threadpool * \param listener The listener the threadpool will notify of changes * \param initial_size The number of threads for the pool to start with * \retval NULL Failed to create the threadpool * \retval non-NULL The newly-created threadpool */ -struct ast_threadpool *ast_threadpool_create(struct ast_threadpool_listener *listener, +struct ast_threadpool *ast_threadpool_create(const char *name, + struct ast_threadpool_listener *listener, int initial_size, const struct ast_threadpool_options *options); /*! |