]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip/res_pjsip_mwi: use centralized serializer pools
authorKevin Harwell <kharwell@digium.com>
Wed, 2 Oct 2019 17:18:09 +0000 (12:18 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 7 Oct 2019 21:53:17 +0000 (16:53 -0500)
commit299ba78b0955f17bfac5703b891d0d19466f99c1
treece7771459d1d457ab804cbfcc75c7caf80f95bd1
parent37ec88c4c8bd71d9a50209966274bbf8559562fa
res_pjsip/res_pjsip_mwi: use centralized serializer pools

Both res_pjsip and res_pjsip_mwi made use of serializer pools. However, they
both implemented their own serializer pool functionality that was pretty much
identical in each of the source files. This patch removes the duplicated code,
and uses the new 'ast_serializer_pool' object instead.

Additionally res_pjsip_mwi enables a shutdown group on the pool since if the
timing was right the module could be unloaded while taskprocessor threads still
needed to execute, thus causing a crash.

Change-Id: I959b0805ad024585bbb6276593118be34fbf6e1d
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip_mwi.c