mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -744,10 +744,10 @@ int ast_recvchar(struct ast_channel *chan, int timeout);
|
||||
* Returns the next channel in the list, NULL on end.
|
||||
* If it returns a channel, that channel *has been locked*!
|
||||
*/
|
||||
struct ast_channel *ast_channel_walk_locked(struct ast_channel *prev);
|
||||
struct ast_channel *ast_channel_walk_locked(const struct ast_channel *prev);
|
||||
|
||||
/*! Get channel by name (locks channel) */
|
||||
struct ast_channel *ast_get_channel_by_name_locked(char *channame);
|
||||
struct ast_channel *ast_get_channel_by_name_locked(const char *chan);
|
||||
|
||||
/*! Waits for a digit */
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user