protect access to first_action with actionlock.
authorLuigi Rizzo <rizzo@icir.org>
Mon, 16 Oct 2006 09:33:00 +0000 (09:33 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Mon, 16 Oct 2006 09:33:00 +0000 (09:33 +0000)
commit6d10a245b68e4922aaf215950b0be3f2a07990f2
treedc036c927487c0aca8b72ac08b843c75798c7339
parent97fc34d45064a0d82a817e634aa14a6307c546e5
protect access to first_action with actionlock.
Mark with XXX one place (during command execution) where
navigation should be protected with actionlock, but is not
because it would block requests for a long time.

To solve this properly we need to put reference counts in
the struct manager_action.
A suboptimal fix is to copy the record on a search and then
unlock the list while we work on the copy.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c