diff options
author | Matt Jordan <mjordan@digium.com> | 2015-06-26 13:35:07 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-06-26 13:35:07 -0500 |
commit | 0a1700d286ad130ab29ce70e8b291fa1f2f567a7 (patch) | |
tree | 06bdfbb79485b7505e143e538dd98b251959c079 /res/res_pjsip.c | |
parent | d8e61c04a4a933132330b9f127970cdac31af5cf (diff) | |
parent | 84c12f9e0c810c4816444dbd2bb8a6f4e5bfc1f9 (diff) |
Merge "threadpool, res_pjsip: Add serializer group shutdown API calls." into 13
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 5389087e0..e92de51bb 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -3322,20 +3322,25 @@ int ast_sip_append_body(pjsip_tx_data *tdata, const char *body_text) return 0; } -struct ast_taskprocessor *ast_sip_create_serializer(void) +struct ast_taskprocessor *ast_sip_create_serializer_group(struct ast_serializer_shutdown_group *shutdown_group) { struct ast_taskprocessor *serializer; char name[AST_UUID_STR_LEN]; ast_uuid_generate_str(name, sizeof(name)); - serializer = ast_threadpool_serializer(name, sip_threadpool); + serializer = ast_threadpool_serializer_group(name, sip_threadpool, shutdown_group); if (!serializer) { return NULL; } return serializer; } +struct ast_taskprocessor *ast_sip_create_serializer(void) +{ + return ast_sip_create_serializer_group(NULL); +} + int ast_sip_push_task(struct ast_taskprocessor *serializer, int (*sip_task)(void *), void *task_data) { if (serializer) { |