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

chore: rename threads on Windows too #5539

Merged
merged 5 commits into from
Aug 11, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Aug 10, 2024

Additionally, this adds a few names for threads not yet renamed. Names on Windows don't have tight restrictions on the length. On macOS, this would need to be done from inside the thread, as it doesn't have the first argument to pthread_setname_np.

Code_2024-08-10_15-22-10

@Nerixyz Nerixyz changed the title chore: rename threads on windows too chore: rename threads on Windows too Aug 10, 2024
Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nits, otherwise 👍

src/util/RenameThread.hpp Outdated Show resolved Hide resolved
src/util/RenameThread.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/util/RenameThread.cpp Show resolved Hide resolved
src/util/RenameThread.cpp Show resolved Hide resolved
@pajlada pajlada merged commit 1ccdaea into Chatterino:master Aug 11, 2024
17 checks passed
@Nerixyz Nerixyz deleted the chore/windows-thread-name branch August 11, 2024 09:23
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