Simplify threadpool refcounting a bit.
authorMark Michelson <mmichelson@digium.com>
Tue, 4 Dec 2012 21:21:15 +0000 (21:21 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 4 Dec 2012 21:21:15 +0000 (21:21 +0000)
commitc16371fab6ef46aee679829565e6b387b86b5683
tree65b905286202fe123e2a484c4274de866ab0c782
parenta37fb2e8c89332f4cd9facf1884d982813614f0c
Simplify threadpool refcounting a bit.

Since threadpool shutdown is very strictly controlled,
there is no need to be so precise with reference counts
in queued operations. Since the threadpool shuts down its
own control taskprocessor before doing anything else destructive,
it can be guaranteed that all queued tasks will have a valid
pointer to the pool. This meant that some destructor functions
for helper structs could be removed entirely.

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