[asterisk-dev] [Code Review] Various updates to the timing API

Russell Bryant russell at digium.com
Mon Feb 16 09:59:27 CST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.digium.com/r/162/
-----------------------------------------------------------

(Updated 2009-02-16 09:59:27.319588)


Review request for Asterisk Developers.


Changes
-------

Note that the heap implementation is a prereq.


Summary (updated)
-------

Now that we have multiple timing modules, only being to load one module is causing some usability issues.  So, that inspired this patch.  I am proposing that this patch go in both trunk and 1.6.1.

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

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

3) Report which timing module is being use in the "timing test" CLI command, at the request of Tzafrir on the -dev list.

Note: This patch requires the heap implementation from /r/160/.


Diffs
-----

  /trunk/include/asterisk/timing.h 176034 
  /trunk/main/Makefile 176034 
  /trunk/main/channel.c 176034 
  /trunk/main/timing.c 176034 
  /trunk/res/res_timing_dahdi.c 176034 
  /trunk/res/res_timing_pthread.c 176034 
  /trunk/res/res_timing_timerfd.c 176034 

Diff: http://reviewboard.digium.com/r/162/diff


Testing
-------

It compiles.  "timing test" still works and reports the module I would expect to be in use.


Thanks,

Russell




More information about the asterisk-dev mailing list