Data stores do not need a lock. As well change the way they are removed from the channel when it is destroyed (thanks Russell Wussell) and finally... because C++ is silly... change our list macro info thing to be "entry" instead of "list".

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-04-11 03:50:17 +00:00
parent 44b98afdcd
commit 0f1321d423
3 changed files with 10 additions and 22 deletions

View File

@@ -161,7 +161,7 @@ struct ast_datastore {
/*! Data store type information */
const struct ast_datastore_info *info;
/*! Used for easy linking */
AST_LIST_ENTRY(ast_datastore) list;
AST_LIST_ENTRY(ast_datastore) entry;
};
/*! Structure for all kinds of caller ID identifications */
@@ -444,7 +444,7 @@ struct ast_channel {
struct ast_channel_spy_list *spies;
/*! Data stores on the channel */
AST_LIST_HEAD(datastores, ast_datastore) datastores;
AST_LIST_HEAD_NOLOCK(datastores, ast_datastore) datastores;
/*! For easy linking */
AST_LIST_ENTRY(ast_channel) chan_list;