mirror of
https://github.com/python/cpython.git
synced 2025-09-24 01:13:22 +00:00
bpo-37077: Add native thread ID (TID) for AIX (GH-13624)
This is the followup for issue36084
https://bugs.python.org/issue37077
(cherry picked from commit d0eeb936d8
)
Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
This commit is contained in:
parent
5282b3b1d2
commit
886d83e5aa
5 changed files with 12 additions and 5 deletions
|
@ -26,7 +26,7 @@ PyAPI_FUNC(unsigned long) PyThread_start_new_thread(void (*)(void *), void *);
|
|||
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(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(_WIN32)
|
||||
#if defined(__APPLE__) || defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(_WIN32) || defined(_AIX)
|
||||
#define PY_HAVE_THREAD_NATIVE_ID
|
||||
PyAPI_FUNC(unsigned long) PyThread_get_thread_native_id(void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue