dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/utils
mmichelson 91df49dd46 Merged revisions 140488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140488 | mmichelson | 2008-08-29 12:34:17 -0500 (Fri, 29 Aug 2008) | 22 lines

After working on the ao2_containers branch, I noticed
something a bit strange. In all cases where we provide
a callback function to ao2_container_alloc, the callback
function would only return 0 or CMP_MATCH. After inspecting
the ao2_callback() code carefully, I found that if you're
only looking for one specific item, then you should return
CMP_MATCH | CMP_STOP. Otherwise, astobj2 will continue
traversing the current bucket until the end searching for
more matches.

In cases like chan_iax2 where in 1.4, all the peers are
shoved into a single bucket, this makes for potentially
terrible performance since the entire bucket will be
traversed even if the peer is one of the first ones come
across in the bucket.

All the changes I have made were for cases where the 
callback function defined was passed to ao2_container_alloc
so that calls to ao2_find could find a unique instance
of whatever object was being stored in the container.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140489 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-29 17:47:17 +00:00
..
Makefile Remove an unneeded target from the Makefile 2008-06-27 14:14:09 +00:00
ael_main.c Oops. put a decl in a generated file. My bad, but fixed now. 2008-08-19 16:31:24 +00:00
astcanary.c Add a set of text to the file astcanary uses to communicate back the main 2008-05-18 21:15:58 +00:00
astman.1 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
astman.c More merges from resolve-shadow warnings: 2008-08-07 15:16:48 +00:00
build-extensions-conf.lua Add pbx_lua as a method of doing extensions 2007-11-02 15:36:34 +00:00
check_expr.c Avoid build warning when execinfo.h isn't available. 2008-05-29 12:12:07 +00:00
clicompat.c simplify this file 2007-12-10 08:35:35 +00:00
conf2ael.c Oops. put a decl in a generated file. My bad, but fixed now. 2008-08-19 16:31:24 +00:00
expr2.testinput In regards to changes for 9508, expr2 system choking on floating point numbers, I'm adding this update to round out (no pun intended) and make this FP-capable version of the Expr2 stuff interoperate better with previous integer-only usage, by providing Functions syntax, with 20 builtin functions for floating pt to integer conversions, and some general floating point math routines that might commonly be used also. Along with this, I made it so if a function was not a builtin, it will try and find it in the ast_custom_function list, and if found, execute it and collect the results. Thus, you can call system functions like CDR(), CHANNEL(), etc, from within $\[..\] exprs, without having to wrap them in $\{...\} (curly brace) notation. Did a valgrind on the standalone and made sure there's no mem leaks. Looks good. Updated the docs, too. 2007-07-05 18:15:22 +00:00
extconf.c More merges from resolve-shadow warnings: 2008-08-07 15:16:48 +00:00
frame.c More merges from resolve-shadow warnings: 2008-08-07 15:16:48 +00:00
frame.h git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
hashtest.c A new feature thanks to the fine folks at Switchvox! 2008-05-23 22:35:50 +00:00
hashtest2.c Merged revisions 140488 via svnmerge from 2008-08-29 17:47:17 +00:00
muted.c More merges from resolve-shadow warnings: 2008-08-07 15:16:48 +00:00
refcounter.c A new feature thanks to the fine folks at Switchvox! 2008-05-23 22:35:50 +00:00
smsq.c More merges from resolve-shadow warnings: 2008-08-07 15:16:48 +00:00
stereorize.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
streamplayer.c Merged revisions 47331 via svnmerge from 2006-11-08 17:06:33 +00:00