Skip to content
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

Add support for thread naming on windows platform #100400

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

CrabNickolson
Copy link
Contributor

This implements thread naming for windows. So Thread::set_name() and OS::set_thread_name() should work on that platform now.
It is mostly a copy of thread_posix, except I didn't use a designated initializer for PlatformFunctions, since that causes a compilation error. I'm not sure why that even works in thread_posix, since designated initializers apparently are a C++20 feature.

@CrabNickolson
Copy link
Contributor Author

@bruvzg Thanks, I have applied your suggestions. I missed that this is Win10 only.

@CrabNickolson CrabNickolson requested a review from bruvzg December 14, 2024 14:11
@akien-mga akien-mga modified the milestones: 4.x, 4.4 Dec 18, 2024
@akien-mga
Copy link
Member

For the record, your commit seems not to be linked to your GitHub account. See: Why are my commits linked to the wrong user? for more info.

@Repiteo Repiteo merged commit 9300c2b into godotengine:master Dec 20, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 20, 2024

Thanks! Congratulations on your first merged contribution! 🎉

@CrabNickolson CrabNickolson deleted the windows-thread-names branch December 20, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants