mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-28 13:38:38 +00:00
res_pjsip: Add reason comment.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user