summaryrefslogtreecommitdiff
path: root/include/asterisk/term.h
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2013-02-14 17:06:02 +0000
committerSean Bright <sean@malleable.com>2013-02-14 17:06:02 +0000
commit86a537c2712f99842d1076dc093ce654a76ed55c (patch)
tree65b10ad228eaaddfb5706be8083c1631490932a2 /include/asterisk/term.h
parent064c65d5a2eda5191a2f998f4ed3e08edce33785 (diff)
Use a shuffling algorithm to find unused IAX2 call numbers.
While adding red-black tree containers to astobj2 in r376575, Richard pointed out the way chan_iax2 finds unused call numbers will prevent ao2_container integrity checks at runtime. This patch removes the ao2_container and instead uses fixed sized arrays and a modified Fisher-Yates-Durstenfeld shuffle to maintain the call number list. While the locking semantics are similar to the ao2_container implementation, this implementation should be faster and more memory efficient. Review: https://reviewboard.asterisk.org/r/2288/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/term.h')
0 files changed, 0 insertions, 0 deletions