Skip to content

fix(win32): return actual thread IDs - #3

Merged
OwendB1 merged 2 commits into
mainfrom
fix/havok-thread-ids
Jul 21, 2026
Merged

fix(win32): return actual thread IDs#3
OwendB1 merged 2 commits into
mainfrom
fix/havok-thread-ids

Conversation

@OwendB1

@OwendB1 OwendB1 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

CreateThread returned 1 for every worker while GetCurrentThreadId reported the Linux TID. Wait for worker startup so both APIs expose a consistent identity to Havok.

OwendB1 added 2 commits July 19, 2026 19:36
CreateThread returned 1 for every worker while GetCurrentThreadId reported the Linux TID. Wait for worker startup so both APIs expose a consistent identity to Havok.
DLL thread attach callbacks run while holding the loaded-image mutex and may create another thread. Publish the Linux TID first so CreateThread cannot wait on DLL initialization.
@OwendB1
OwendB1 merged commit ab99610 into main Jul 21, 2026
1 check passed
@OwendB1
OwendB1 deleted the fix/havok-thread-ids branch July 21, 2026 19:09
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.

1 participant