mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
channel.c: Make CHECK_BLOCKING() save thread LWP id for messages.
* Removed an unnecessary call to ast_channel_blocker_set() in __ast_read(). ASTERISK-27625 Change-Id: I342168b999984666fb869cd519fe779583a73834
This commit is contained in:
@@ -169,6 +169,7 @@ struct ast_channel {
|
||||
unsigned long insmpl; /*!< Track the read/written samples for monitor use */
|
||||
unsigned long outsmpl; /*!< Track the read/written samples for monitor use */
|
||||
|
||||
int blocker_tid; /*!< If anyone is blocking, this is their thread id */
|
||||
int fds[AST_MAX_FDS]; /*!< File descriptors for channel -- Drivers will poll on
|
||||
* these file descriptors, so at least one must be non -1.
|
||||
* See \arg \ref AstFileDesc */
|
||||
@@ -1331,6 +1332,15 @@ void ast_channel_blocker_set(struct ast_channel *chan, pthread_t value)
|
||||
chan->blocker = value;
|
||||
}
|
||||
|
||||
int ast_channel_blocker_tid(const struct ast_channel *chan)
|
||||
{
|
||||
return chan->blocker_tid;
|
||||
}
|
||||
void ast_channel_blocker_tid_set(struct ast_channel *chan, int value)
|
||||
{
|
||||
chan->blocker_tid = value;
|
||||
}
|
||||
|
||||
ast_timing_func_t ast_channel_timingfunc(const struct ast_channel *chan)
|
||||
{
|
||||
return chan->timingfunc;
|
||||
|
Reference in New Issue
Block a user