[asterisk-dev] [Code Review] Remove skinny do_monitor and use ast_sched_start instead

wedhorn reviewboard at asterisk.org
Mon Jun 6 21:18:10 CDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1256/
-----------------------------------------------------------

Review request for Asterisk Developers.


Summary
-------

Review is predominantly to check that I'm correctly setting up the ast_sched_ stuff.

The do_monitor seemed to be there for task scheduling and network monitoring. However, the network monitoring has a dedicated thread so the ast_io_wait was basically just a usleep as it didn't actually seem to be monitoring anything. Using the inbuilt sched handling means we can now schedule task pretty much immediately rather than waiting for up to 1 second. When ast_sched_add is called, the sched thread is notified and reruns.

This is a precursor to adding additional scheduling tasks into skinny, namely rtp_timeout, autoanswer after a delay and cfwdnoanswer. Also plan to rewrite the simpleswitch to use timeout scheduling rather than a dedicated thread.


Diffs
-----

  trunk/channels/chan_skinny.c 319583 

Diff: https://reviewboard.asterisk.org/r/1256/diff


Testing
-------

Tested on skinny 7960 and 30VIPs. Tested dummy ast_sched_add and it worked.


Thanks,

wedhorn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110607/f4295a1b/attachment.htm>


More information about the asterisk-dev mailing list