Update the timing API to have better support for multiple timing interfaces.
authorRussell Bryant <russell@russellbryant.com>
Tue, 17 Feb 2009 21:22:40 +0000 (21:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 17 Feb 2009 21:22:40 +0000 (21:22 +0000)
commitc461d29b0bfb1dee8be097fd11513000e44d3f09
tree970a76c529a8b43ee7d90a826d405bbe41d54e2e
parent6f9e69adad78f9de8ecf5a315f9850bb5bbb576c
Update the timing API to have better support for multiple timing interfaces.

1) Add module use count handling so that timing modules can be unloaded.

2) Implement unload_module() functions for the timing interface modules.

3) Allow multiple timing modules to be loaded, and use the one with the
   highest priority value.

4) Report which timing module is being use in the "timing test" CLI command.

(closes issue #14489)
Reported by: russell

Review: http://reviewboard.digium.com/r/162/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/timing.h
main/channel.c
main/timing.c
res/res_timing_dahdi.c
res/res_timing_pthread.c
res/res_timing_timerfd.c