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

fix BSD build support (#345) #366

Merged
merged 2 commits into from May 31, 2021
Merged

Conversation

spookyvision
Copy link
Contributor

fix #345

Comment on lines 44 to 51
#if defined(unix) || defined(__unix__) || defined(__unix)
#if __linux__
// on Linux, max 16 chars including \0, see man page
pthread_setname_np(pthread_self(), "WaveformThread");
#else
// BSD, including Apple
pthread_setname_np("WaveformThread");
#endif
Copy link

Choose a reason for hiding this comment

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

I wonder if this logic couldn't be made into a utility function? This way you'd avoid repeating the ifdefs all across the code base.

@azonenberg azonenberg merged commit 15a189d into ngscopeclient:master May 31, 2021
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.

BSD build support
3 participants