mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Make ast_taskprocessor_listener opaque.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -283,7 +283,7 @@ static int test_start(struct ast_taskprocessor_listener *listener)
|
||||
*/
|
||||
static void test_task_pushed(struct ast_taskprocessor_listener *listener, int was_empty)
|
||||
{
|
||||
struct test_listener_pvt *pvt = listener->user_data;
|
||||
struct test_listener_pvt *pvt = ast_taskprocessor_listener_get_user_data(listener);
|
||||
++pvt->num_pushed;
|
||||
if (was_empty) {
|
||||
++pvt->num_was_empty;
|
||||
@@ -295,7 +295,7 @@ static void test_task_pushed(struct ast_taskprocessor_listener *listener, int wa
|
||||
*/
|
||||
static void test_emptied(struct ast_taskprocessor_listener *listener)
|
||||
{
|
||||
struct test_listener_pvt *pvt = listener->user_data;
|
||||
struct test_listener_pvt *pvt = ast_taskprocessor_listener_get_user_data(listener);
|
||||
++pvt->num_emptied;
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ static void test_emptied(struct ast_taskprocessor_listener *listener)
|
||||
*/
|
||||
static void test_shutdown(struct ast_taskprocessor_listener *listener)
|
||||
{
|
||||
struct test_listener_pvt *pvt = listener->user_data;
|
||||
struct test_listener_pvt *pvt = ast_taskprocessor_listener_get_user_data(listener);
|
||||
pvt->shutdown = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user