From c855c2c3815206ee08b7368b221e9f77af444a64 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Mon, 15 Dec 2008 19:51:24 +0000 Subject: Merged revisions 164416 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r164416 | mmichelson | 2008-12-15 13:45:07 -0600 (Mon, 15 Dec 2008) | 4 lines Add notes to autoservice and pbx doxygen regarding a potential deadlock scenario so that it is avoided in the future ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164419 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/channel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/asterisk/channel.h') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 93ef1f1b6..3c3e0f6e1 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1429,6 +1429,11 @@ int ast_autoservice_start(struct ast_channel *chan); /*! * \brief Stop servicing a channel for us... * + * \note if chan is locked prior to calling ast_autoservice_stop, it + * is likely that there will be a deadlock between the thread that calls + * ast_autoservice_stop and the autoservice thread. It is important + * that chan is not locked prior to this call + * * \retval 0 success * \retval -1 error, or the channel has been hungup */ -- cgit v1.2.3