Switch the devicestate thread to operate the same way as the logging thread. Pops...
authorJoshua Colp <jcolp@digium.com>
Fri, 2 Feb 2007 00:49:14 +0000 (00:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 2 Feb 2007 00:49:14 +0000 (00:49 +0000)
commit8a889843ba4c043a52153f4222679ed8266c383d
tree4f53531bb9aea87279e4fc712fbc98f188bf8d96
parentae64c71d650409611954d93bc1743ba3540382be
Switch the devicestate thread to operate the same way as the logging thread. Pops all entries off the list to be processed, resets the list back to a clean state, and processes each entry. The thread won't have to acquire the list lock again until it checks to see if there are more to process.

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