[asterisk-commits] rmudgett: branch 13 r433005 - /branches/13/res/res_pjsip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 17 11:10:45 CDT 2015


Author: rmudgett
Date: Tue Mar 17 11:10:39 2015
New Revision: 433005

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433005
Log:
res_pjsip: Add reason comment.

Modified:
    branches/13/res/res_pjsip.c

Modified: branches/13/res/res_pjsip.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip.c?view=diff&rev=433005&r1=433004&r2=433005
==============================================================================
--- branches/13/res/res_pjsip.c (original)
+++ branches/13/res/res_pjsip.c Tue Mar 17 11:10:39 2015
@@ -2975,6 +2975,12 @@
 
 	std->fail = std->task(std->task_data);
 
+	/*
+	 * Once we unlock std->lock after signaling, we cannot access
+	 * std again.  The thread waiting within
+	 * ast_sip_push_task_synchronous() is free to continue and
+	 * release its local variable (std).
+	 */
 	ast_mutex_lock(&std->lock);
 	std->complete = 1;
 	ast_cond_signal(&std->cond);




More information about the asterisk-commits mailing list