The channel needs to stay locked while running timer callbacks, as they access

and modify channel data that may change elsewhere.  I went through every timer
callback in the source tree to make sure that none of them did any additional
locking that could introduce deadlocks, and all is well.

(closes issue #10765)
Reported by: Ivan
Patches:
      ast_1_4_11_svn_patch_channel_rc.diff uploaded by Ivan (license 229)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-10-18 18:03:10 +00:00
parent c9935ba132
commit 9df6ebe9b9
2 changed files with 3 additions and 6 deletions

View File

@@ -141,6 +141,7 @@ typedef unsigned long long ast_group_t;
struct ast_generator {
void *(*alloc)(struct ast_channel *chan, void *params);
void (*release)(struct ast_channel *chan, void *data);
/*! This function gets called with the channel locked */
int (*generate)(struct ast_channel *chan, void *data, int len, int samples);
};