main/utils: Implement ast_get_tid() for OpenBSD

Implement the ast_get_tid() function for OpenBSD. OpenBSD supports
getting the TID via getthrid().

(cherry picked from commit 29a3e5660b)
releases/21.9
Brad Smith 3 years ago committed by Asterisk Development Team
parent 3949358ee1
commit 5fa3c03738

@ -2763,6 +2763,8 @@ int ast_get_tid(void)
ret = lwpid;
#elif defined(__NetBSD__)
ret = _lwp_self();
#elif defined(__OpenBSD__)
ret = getthrid();
#endif
return ret;
}

Loading…
Cancel
Save