Skip to content

generic implementation for getThreadId for POSIX#333

Merged
vincent-richard merged 2 commits intokisli:masterfrom
jengelh:threadid
Mar 24, 2026
Merged

generic implementation for getThreadId for POSIX#333
vincent-richard merged 2 commits intokisli:masterfrom
jengelh:threadid

Conversation

@jengelh
Copy link
Copy Markdown
Contributor

@jengelh jengelh commented Mar 24, 2026

  • Switch getThreadId to return uintptr_t:
    Some threading implementations are lightweight/do not have a corresponding PID-like identifier for them, but only a memory handle. This necessitates using a type that is a typical register wide.
  • Provide a generic implementation for getThreadId() on POSIX using pthread_self

jengelh added 2 commits March 24, 2026 02:00
Some threading implementations are lightweight/do not have a
corresponding PID-like identifier for them, but only a memory handle.
This necessitates using a type that is a typical register wide.
@vincent-richard vincent-richard merged commit 85f9730 into kisli:master Mar 24, 2026
1 check passed
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