]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: Use separate lock for session event notification.
authorJoshua Colp <jcolp@digium.com>
Mon, 25 Mar 2019 11:34:09 +0000 (08:34 -0300)
committerJoshua Colp <jcolp@digium.com>
Tue, 26 Mar 2019 13:37:09 +0000 (10:37 -0300)
commit03708f435c836d70378b590caf75f50a72d55e85
tree7154a6e51d6f0fe0a9725aa4dfd1044eecfdd062
parent85f87790a58da62a52c42b72cf27dc59317e994a
manager: Use separate lock for session event notification.

When notifying a manager session that new events were available
the same lock was used that was also held when doing things within
the session (such as sending events out). If the manager session
blocked for a period of time this would cause a back up of messages
in Stasis and would also block any other sessions from receiving
events.

This change adds a separate lock to the manager session which is
strictly used for notifying it that new events are available.

ASTERISK-28350

Change-Id: Ifbcac007faca9ad0231640f5e82a6ca9228f261b
main/manager.c