Skip to content

update docs on OSThread.id - #461

Open
Mythra wants to merge 1 commit into
devkitPro:masterfrom
Mythra:mythra/thread-id-docs
Open

Mythra wants to merge 1 commit into
devkitPro:masterfrom
Mythra:mythra/thread-id-docs

Conversation

@Mythra

@Mythra Mythra commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

previously OSThread.id claimed it was a unique thread id, but it's always initialized to 0x8000 on all threads, so not only not unique, but callers can assign custom ids to it (which is not clear).

This just updates the documentation to make both of those more clear.

@GaryOderNichts

Copy link
Copy Markdown
Contributor

Are we sure this is actually a thread id? Seems odd to initialize it to 0x8000.

@Mythra

Mythra commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Yes absolutely positive this is the thread id from behavior of many titles. 0x8000 is a weird thread if for "not numbered", but this is the thread id.

This branch has not been deployed

No deployments
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