]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-154283: Make threading.get_native_id() unique across processes on DragonFly...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 20:20:57 +0000 (22:20 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 20:20:57 +0000 (20:20 +0000)
commit387f7cd81d285ca9ed9a95b2376a2290a3241f20
tree1f1f1f40a449b09347f056ab65b53476fe7386fc
parent9a52f94c5722056a735c10307a63d4f6f7e79050
[3.15] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287) (GH-154293)

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.
(cherry picked from commit 53597df11e2d9f01ade2529c147df24b49685878)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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