mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
main/utils: Implement ast_get_tid() for OpenBSD
Implement the ast_get_tid() function for OpenBSD. OpenBSD supports getting the TID via getthrid().
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
6ec59e1e04
commit
5c22cfccd9
@@ -2763,6 +2763,8 @@ int ast_get_tid(void)
|
|||||||
ret = lwpid;
|
ret = lwpid;
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
ret = _lwp_self();
|
ret = _lwp_self();
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
|
ret = getthrid();
|
||||||
#endif
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user