]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 19:13:21 +0000 (22:13 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 19:13:21 +0000 (19:13 +0000)
commit53597df11e2d9f01ade2529c147df24b49685878
treeb61432816660236597050c8f0eefbddeaeb74ee6
parente81f19052ae1dad6bfaa240f3e56c2b34129a8fd
gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287)

On DragonFly BSD lwp_gettid() is only unique within a process (the main
thread is always LWP 1), so combine it with the process id, like Solaris.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Misc/NEWS.d/next/Library/2026-07-20-21-36-40.gh-issue-154283.Xip7xE.rst [new file with mode: 0644]
Python/thread_pthread.h