diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-01-15 20:48:45 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-01-15 20:48:45 +0000 |
commit | 663479a558e2f2b98a94a9d77cf4c66f0e66e513 (patch) | |
tree | 9116f2cfdb39354e20c909f2881c9d85d4e39d2f /main/threadpool.c | |
parent | 03e89247ded06b5320684bfa10a6e5e2fbe57646 (diff) |
Make ast_taskprocessor_listener opaque.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/threadpool.c')
-rw-r--r-- | main/threadpool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index bdb71dce5..475a673fd 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -548,7 +548,7 @@ static int queued_task_pushed(void *data) static void threadpool_tps_task_pushed(struct ast_taskprocessor_listener *listener, int was_empty) { - struct ast_threadpool *pool = listener->user_data; + struct ast_threadpool *pool = ast_taskprocessor_listener_get_user_data(listener); struct task_pushed_data *tpd; SCOPED_AO2LOCK(lock, pool); @@ -588,7 +588,7 @@ static int queued_emptied(void *data) */ static void threadpool_tps_emptied(struct ast_taskprocessor_listener *listener) { - struct ast_threadpool *pool = listener->user_data; + struct ast_threadpool *pool = ast_taskprocessor_listener_get_user_data(listener); SCOPED_AO2LOCK(lock, pool); if (pool->shutting_down) { @@ -611,7 +611,7 @@ static void threadpool_tps_emptied(struct ast_taskprocessor_listener *listener) */ static void threadpool_tps_shutdown(struct ast_taskprocessor_listener *listener) { - struct ast_threadpool *pool = listener->user_data; + struct ast_threadpool *pool = ast_taskprocessor_listener_get_user_data(listener); if (pool->listener && pool->listener->callbacks->shutdown) { pool->listener->callbacks->shutdown(pool->listener); |