Add a shutdown callback to taskprocessor listeners.
authorMark Michelson <mmichelson@digium.com>
Fri, 16 Nov 2012 04:33:53 +0000 (04:33 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 16 Nov 2012 04:33:53 +0000 (04:33 +0000)
commit12de4198b83cd30ae1f991ee3ea8e752b39898e0
tree2d84a7a3e8888330d15c1105c0cc2f6e23f850d2
parente8898ec8bab18c6c6cadc94f4b2c33a623f5a46f
Add a shutdown callback to taskprocessor listeners.

This helps account for the fact that it is unknown just
how many references may exist for a given taskprocessor
listener, so simply unreffing it from the taskprocessor
shutdown function is not enough to convey the gravity
of the situation.

By putting in a shutdown callback, it now becomes clear
to the listener not to try to do any further operations
on the taskprocessor.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/taskprocessor.h
main/taskprocessor.c
tests/test_taskprocessor.c