diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-12-11 04:23:31 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-12-11 04:23:31 +0000 |
commit | 29fc1227839155658ca899cdfa179673c88e1ee2 (patch) | |
tree | d6a3094180d98cb2b0dafe195ac66ba25a99c3f7 /main/threadpool.c | |
parent | 605dcfad9779c59540d9711a5dbc42d138b3949d (diff) |
Some documentation fixes and function call name fixes.
The documentation for taskprocessors was incorrect with
regards to when a listener's alloc callback was called.
I also made the names of queued function calls in the
threadpool more uniform.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/threadpool.c')
-rw-r--r-- | main/threadpool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index ee60dc7e3..57520cf11 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -436,7 +436,7 @@ static int activate_threads(void *obj, void *arg, int flags) } /*! - * \brief Queue task called when tasks are pushed into the threadpool + * \brief Queued task called when tasks are pushed into the threadpool * * This function first calls into the threadpool's listener to let it know * that a task has been pushed. It then wakes up all idle threads and moves @@ -444,7 +444,7 @@ static int activate_threads(void *obj, void *arg, int flags) * \param data A task_pushed_data * \return 0 */ -static int handle_task_pushed(void *data) +static int queued_task_pushed(void *data) { struct task_pushed_data *tpd = data; struct ast_threadpool *pool = tpd->pool; @@ -481,7 +481,7 @@ static void threadpool_tps_task_pushed(struct ast_taskprocessor_listener *listen return; } - ast_taskprocessor_push(pool->control_tps, handle_task_pushed, tpd); + ast_taskprocessor_push(pool->control_tps, queued_task_pushed, tpd); } /*! @@ -491,7 +491,7 @@ static void threadpool_tps_task_pushed(struct ast_taskprocessor_listener *listen * \param data The pool that has become empty * \return 0 */ -static int handle_emptied(void *data) +static int queued_emptied(void *data) { struct ast_threadpool *pool = data; @@ -515,7 +515,7 @@ static void threadpool_tps_emptied(struct ast_taskprocessor_listener *listener) return; } - ast_taskprocessor_push(pool->control_tps, handle_emptied, pool); + ast_taskprocessor_push(pool->control_tps, queued_emptied, pool); } /*! |