Skip to content

UPSTREAM PR #2037: fix: add HaikuOS support for GetTID() in sysinfo.cc#18

Open
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-2037-fix-haiku-os-compilation-1981
Open

UPSTREAM PR #2037: fix: add HaikuOS support for GetTID() in sysinfo.cc#18
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-2037-fix-haiku-os-compilation-1981

Conversation

@loci-dev
Copy link
Copy Markdown

Note

Source pull request: abseil/abseil-cpp#2037

Add a platform-specific GetTID() implementation for HaikuOS using Haiku's native find_thread(NULL) API, which returns the current thread's ID. Without this, HaikuOS falls through to the generic pthread_self() fallback which causes a compilation failure due to type incompatibility.

Fixes #1981

Thank you for your contribution to Abseil!

Before submitting this PR, please be sure to read our contributing
guidelines
.

If you are a Googler, please also note that it is required that you send us a
Piper CL instead of using the GitHub pull-request process. The code propagation
process will deliver the change to GitHub.

Add a platform-specific GetTID() implementation for HaikuOS using
Haiku's native find_thread(NULL) API, which returns the current
thread's ID. Without this, HaikuOS falls through to the generic
pthread_self() fallback which causes a compilation failure due to
type incompatibility.

Fixes #1981
@loci-dev loci-dev force-pushed the main branch 3 times, most recently from 3f337f5 to e94d936 Compare April 21, 2026 06:10
@loci-dev loci-dev force-pushed the main branch 3 times, most recently from 1c2844b to 7abb8d9 Compare April 25, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants