[Asterisk-code-review] core unreal.c: Add clarification comment about channel ref. (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Wed Mar 30 16:27:50 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/2501

Change subject: core_unreal.c: Add clarification comment about channel ref.
......................................................................

core_unreal.c: Add clarification comment about channel ref.

Change-Id: I0be0627260cd8d6b6c3cc345949dcfdf32eff1f3
---
M main/core_unreal.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/01/2501/1

diff --git a/main/core_unreal.c b/main/core_unreal.c
index da0bb43..1f5c202 100644
--- a/main/core_unreal.c
+++ b/main/core_unreal.c
@@ -805,9 +805,11 @@
 		return -1;
 	}
 
+	/* The bridge thread now controls the chan ref from the ast_unreal_pvt */
 	ao2_lock(p);
 	ast_set_flag(p, AST_UNREAL_CARETAKER_THREAD);
 	ao2_unlock(p);
+
 	ast_channel_unref(chan);
 
 	return 0;

-- 
To view, visit https://gerrit.asterisk.org/2501
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0be0627260cd8d6b6c3cc345949dcfdf32eff1f3
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list