[Asterisk-code-review] pbx: Deadlock between contexts container and context merge l... (asterisk[11])

Joshua Colp asteriskteam at digium.com
Mon Dec 28 09:44:45 CST 2015


Joshua Colp has posted comments on this change.

Change subject: pbx: Deadlock between contexts container and context_merge locks
......................................................................


Patch Set 1:

After further discussion with Matt I've come up with the following which returns things to the previous locking and also solves the original issue:

1. A new stasis message type is defined which is a 'hint change' type. Messages of this type contain the hint in question.
2. The device and presence state callbacks handle this type.
3. When the type is received they do the normal state determination and callback invocation, except instead of being triggered by a device or presence change they are trigged by a hint update.
4. The ast_change_hint publishes a message of this type on the topics after updating the hint.
5. Cake

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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7f67ce4b4c94b731c23932cc2ba9e0a4a720813d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-HasComments: No



More information about the asterisk-code-review mailing list