Merge changes from topic 'ASTERISK-27625'

* changes:
  channel.c: Make CHECK_BLOCKING() save thread LWP id for messages.
  channel.c: Fix usage of CHECK_BLOCKING()
  autoservice: Don't start channel autoservice if the thread is a user interface.
This commit is contained in:
George Joseph
2018-06-21 10:26:31 -05:00
committed by Gerrit Code Review
7 changed files with 142 additions and 28 deletions

View File

@@ -913,4 +913,22 @@ enum ast_fd_flag_operation {
int __ast_fd_set_flags(int fd, int flags, enum ast_fd_flag_operation op,
const char *file, int lineno, const char *function);
/*!
* \brief Set the current thread's user interface status.
*
* \param is_user_interface Non-zero to mark the thread as a user interface.
*
* \return 0 if successfuly marked current thread.
* \return Non-zero if marking current thread failed.
*/
int ast_thread_user_interface_set(int is_user_interface);
/*!
* \brief Indicates whether the current thread is a user interface
*
* \return True (non-zero) if thread is a user interface.
* \return False (zero) if thread is not a user interface.
*/
int ast_thread_is_user_interface(void);
#endif /* _ASTERISK_UTILS_H */