diff options
author | Richard Mudgett <rmudgett@digium.com> | 2015-03-17 16:10:39 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2015-03-17 16:10:39 +0000 |
commit | 522f0631863fb4ddf6337ecbdbf9b56c92eb757f (patch) | |
tree | 4b2d654bc2eeac641abeaf4a51e8a5254f47735d /res/res_pjsip.c | |
parent | 5c03a5f2e792635a3e61886df94e52802ef40371 (diff) |
res_pjsip: Add reason comment.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 133546126..20ac7a03e 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2975,6 +2975,12 @@ static int sync_task(void *data) 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); |