]> 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:29 +0000 (07:37 -0600)
commit4d8cd2efbeae48f7d1c5ec61cce9acdc6af9955d
treef64cab3bd6310475f3b7b50721df57a6f676d03c
parentce5bed44e46c446f1783982b9c2b4b2d5c0e8a56
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