mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "res_pjsip: Create human friendly serializer names." into 13
This commit is contained in:
@@ -1124,6 +1124,21 @@ struct ast_sip_endpoint *ast_sip_get_artificial_endpoint(void);
|
||||
*/
|
||||
struct ast_taskprocessor *ast_sip_create_serializer(void);
|
||||
|
||||
/*!
|
||||
* \brief Create a new serializer for SIP tasks
|
||||
* \since 13.8.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 name Name of the serializer. (must be unique)
|
||||
*
|
||||
* \retval NULL Failure
|
||||
* \retval non-NULL Newly-created serializer
|
||||
*/
|
||||
struct ast_taskprocessor *ast_sip_create_serializer_named(const char *name);
|
||||
|
||||
struct ast_serializer_shutdown_group;
|
||||
|
||||
/*!
|
||||
@@ -1141,6 +1156,22 @@ struct ast_serializer_shutdown_group;
|
||||
*/
|
||||
struct ast_taskprocessor *ast_sip_create_serializer_group(struct ast_serializer_shutdown_group *shutdown_group);
|
||||
|
||||
/*!
|
||||
* \brief Create a new serializer for SIP tasks
|
||||
* \since 13.8.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 name Name of the serializer. (must be unique)
|
||||
* \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_named(const char *name, 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