mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-81925: Implement native thread ids for kFreeBSD (#111761)
--------- Co-authored-by: Antoine Pitrou <antoine@python.org>
This commit is contained in:
parent
0c61d028be
commit
0802fd6c8e
6 changed files with 18 additions and 5 deletions
|
@ -21,7 +21,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN PyThread_exit_thread(void);
|
|||
PyAPI_FUNC(unsigned long) PyThread_get_thread_ident(void);
|
||||
|
||||
#if (defined(__APPLE__) || defined(__linux__) || defined(_WIN32) \
|
||||
|| defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
|
||||
|| defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
||||
|| defined(__OpenBSD__) || defined(__NetBSD__) \
|
||||
|| defined(__DragonFly__) || defined(_AIX))
|
||||
#define PY_HAVE_THREAD_NATIVE_ID
|
||||
PyAPI_FUNC(unsigned long) PyThread_get_thread_native_id(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue