diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 3 | ||||
-rw-r--r-- | include/asterisk/utils.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index 2ec7b7ed8..5ef3dc15e 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -915,6 +915,9 @@ /* Define to 1 if you have the <sys/stat.h> header file. */ #undef HAVE_SYS_STAT_H +/* Define to 1 if you have the <sys/thr.h> header file. */ +#undef HAVE_SYS_THR_H + /* Define to 1 if you have the <sys/time.h> header file. */ #undef HAVE_SYS_TIME_H diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index a0208e7f2..97f32bf67 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -758,4 +758,11 @@ int ast_str_to_eid(struct ast_eid *eid, const char *s); */ int ast_eid_cmp(const struct ast_eid *eid1, const struct ast_eid *eid2); +/*! + * \brief Get current thread ID + * \param None + * \return the ID if platform is supported, else -1 + */ +int ast_get_tid(void); + #endif /* _ASTERISK_UTILS_H */ |