Improve shutdown procedure.
authorMark Michelson <mmichelson@digium.com>
Mon, 10 Dec 2012 05:25:38 +0000 (05:25 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 10 Dec 2012 05:25:38 +0000 (05:25 +0000)
commit5dd22df050264299b42160daeaa7701c81488ceb
tree5534dc1df28fa6e820261ae05fc88f6d60913e02
parent03d617040a1749c8efb90cc7d125583256e8cbb9
Improve shutdown procedure.

This helps tests to pass more often than before.
They are far less likely to queue extra processes
into the control taskprocessor since they are prevented
once the threadpool begins to shut down.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/threadpool.c
tests/test_threadpool.c