-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting thread name with RaiseException always renames the calling thread, not the target thread. #127
Comments
Fixed in c700264. |
This fixed the issue with the main thread being renamed, but the example still doesn't work. It looks like the thread name can't be set on a thread that was created with CREATE_SUSPENDED until the thread resumes. From a quick look at the code it looks like there may not be a demon entity for the thread yet so the rename fails to find a target. |
That is what I would think is expected behavior, as the debugger has not even received "CreateThread" events for the thread in question yet, but it looks like VS actually handles this case, presumably because they're correlating names to the TID, rather than the thread lifetime (as delimited by the associated create/exit thread events). I'll update the debugger to handle this case as well. |
Fixed in 6e45642. |
Looks good, all my PhysX worker threads are now properly named. Thanks! |
The text was updated successfully, but these errors were encountered: