diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-08-10 19:19:08 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-08-10 19:19:08 -0500 |
commit | dbc78c9faba2b7964a687fc139a6ddc0453a7d0e (patch) | |
tree | a86c7b0abc2148b0dd4baf44bb3b9b1e551d22d1 /include | |
parent | c864ebab528696d6a4b7c999ce5b115691e4637e (diff) | |
parent | 1589452fdc044dc6233e73e87c0e3735c97a5495 (diff) |
Merge "pjsip: Fix deadlock with suspend taskprocessor on masquerade" into 13
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/taskprocessor.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h index e51122269..7c79036b3 100644 --- a/include/asterisk/taskprocessor.h +++ b/include/asterisk/taskprocessor.h @@ -242,6 +242,38 @@ int ast_taskprocessor_push_local(struct ast_taskprocessor *tps, int (*task_exe)(struct ast_taskprocessor_local *local), void *datap); /*! + * \brief Indicate the taskprocessor is suspended. + * + * \since 13.12.0 + * + * \param tps Task processor. + * \retval 0 success + * \retval -1 failure + */ +int ast_taskprocessor_suspend(struct ast_taskprocessor *tps); + +/*! + * \brief Indicate the taskprocessor is unsuspended. + * + * \since 13.12.0 + * + * \param tps Task processor. + * \retval 0 success + * \retval -1 failure + */ +int ast_taskprocessor_unsuspend(struct ast_taskprocessor *tps); + +/*! + * \brief Get the task processor suspend status + * + * \since 13.12.0 + * + * \param tps Task processor. + * \retval non-zero if the task processor is suspended + */ +int ast_taskprocessor_is_suspended(struct ast_taskprocessor *tps); + +/*! * \brief Pop a task off the taskprocessor and execute it. * * \since 12.0.0 |