Some scheduler API cleanup and improvements.
authorRussell Bryant <russell@russellbryant.com>
Mon, 20 Dec 2010 17:15:54 +0000 (17:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 20 Dec 2010 17:15:54 +0000 (17:15 +0000)
commitcc0b7e7df540e5833c79c9b12ef880f03a74b922
treed1049b4c6e02a7236e3a64c09f10633b99decc64
parentcf655aa1c9acabad60dcd9febd952de136b9838d
Some scheduler API cleanup and improvements.

Previously, I had added the ast_sched_thread stuff that was a generic scheduler
thread implementation.  However, if you used it, it required using different
functions for modifying scheduler contents.  This patch reworks how this is
done and just allows you to optionally start a thread on the original scheduler
context structure that has always been there.  This makes it trivial to switch
to the generic scheduler thread implementation without having to touch any of
the other code that adds or removes scheduler entries.

In passing, I made some naming tweaks to add ast_ prefixes where they were not
there before.

Review: https://reviewboard.asterisk.org/r/1007/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@299091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
28 files changed:
channels/chan_gtalk.c
channels/chan_h323.c
channels/chan_iax2.c
channels/chan_jingle.c
channels/chan_mgcp.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
channels/sip/dialplan_functions.c
channels/sip/include/globals.h
include/asterisk.h
include/asterisk/channel.h
include/asterisk/rtp_engine.h
include/asterisk/sched.h
include/asterisk/udptl.h
main/ccss.c
main/cdr.c
main/channel.c
main/dnsmgr.c
main/rtp_engine.c
main/sched.c
main/udptl.c
pbx/pbx_dundi.c
res/res_calendar.c
res/res_rtp_asterisk.c
res/res_rtp_multicast.c
res/res_stun_monitor.c
tests/test_sched.c