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

gpuvis_trace_utils: Prefer C++11 thread_local vs. __thread #22

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

hfink-daqri
Copy link
Contributor

If using a >= C++11 compatible compiler, use thread_local instead of
__thread. This fixes a compilation error with Clang that doesn't provide
GCC's __thread.

Note: Alternatively, if you'd prefer __thread over thread_local, we could also only use thread_local for Clang.

If using a >= C++11 compatible compiler, use thread_local instead of
__thread. This fixes a compilation error with Clang that doesn't provide
GCC's __thread.
@mikesart mikesart merged commit be81a0b into mikesart:master Apr 24, 2019
@mikesart
Copy link
Owner

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.

2 participants