Skip to content

Conversation

pefedotov
Copy link

Fixes a bug related to the fact that before Windows 10 version 1607, the windows api does not have the ::SetThreadDescription function for setting the name for a thread.
When the application tries to call a system function, it crashes.

# include <VersionHelpers.h>

void thread::set_name(std::string_view name) noexcept {
const std::wstring utf16_name(name.begin(),

Choose a reason for hiding this comment

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

What about making the wstring construction conditional too?

@David-Haim
Copy link
Owner

Hi there
Thank you for being patient over the months, I'm slowly getting back to maintain this library
I will probably merge this in the next week or so.

@David-Haim
Copy link
Owner

Hi, are you still there?
Please rebase your PR over develop, note that some missing includes are already added,
thanks!

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.

3 participants