mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
threadpool, res_pjsip: Add serializer group shutdown API calls.
A module trying to unload needs to wait for all serializers it creates and uses to complete processing before unloading. ASTERISK-24907 Reported by: Kevin Harwell Change-Id: I8c80b90f2f82754e8dbb02ddf3c9121e5e966059
This commit is contained in:
@@ -1112,6 +1112,23 @@ struct ast_sip_endpoint *ast_sip_get_artificial_endpoint(void);
|
||||
*/
|
||||
struct ast_taskprocessor *ast_sip_create_serializer(void);
|
||||
|
||||
struct ast_serializer_shutdown_group;
|
||||
|
||||
/*!
|
||||
* \brief Create a new serializer for SIP tasks
|
||||
* \since 13.5.0
|
||||
*
|
||||
* See \ref ast_threadpool_serializer for more information on serializers.
|
||||
* SIP creates serializers so that tasks operating on similar data will run
|
||||
* in sequence.
|
||||
*
|
||||
* \param shutdown_group Group shutdown controller. (NULL if no group association)
|
||||
*
|
||||
* \retval NULL Failure
|
||||
* \retval non-NULL Newly-created serializer
|
||||
*/
|
||||
struct ast_taskprocessor *ast_sip_create_serializer_group(struct ast_serializer_shutdown_group *shutdown_group);
|
||||
|
||||
/*!
|
||||
* \brief Set a serializer on a SIP dialog so requests and responses are automatically serialized
|
||||
*
|
||||
|
Reference in New Issue
Block a user