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

cl_execution_environment: don't redeclare an STL type #638

Closed
wants to merge 1 commit into from

Conversation

rcombs
Copy link
Contributor

@rcombs rcombs commented Apr 20, 2023

Depending on the compiler and STL used, std::once_flag may actually be aliased into an internal namespace (e.g. std::__1::once_flag). Declaring it directly within std here may conflict with that if the actual <mutex> header is included in the same translation unit.

This regressed in 77b88f1.

@JablonskiMateusz
Copy link
Contributor

please add signed-off-by to commit msg, as described here: https://github.com/intel/compute-runtime/blob/master/CONTRIBUTING.md#2-certificate-of-origin

Depending on the compiler and STL used, `std::once_flag` may actually be aliased into an internal namespace (e.g. `std::__1::once_flag`). Declaring it directly within `std` here may conflict with that if the actual `<mutex>` header is included in the same translation unit.

This regressed in 77b88f1.

Signed-off-by: rcombs <rcombs@rcombs.me>
@rcombs
Copy link
Contributor Author

rcombs commented Apr 21, 2023

Done.

@JablonskiMateusz
Copy link
Contributor

JablonskiMateusz commented Apr 24, 2023

please remove backtick characters from commit msg

@JablonskiMateusz
Copy link
Contributor

nevermind, change looks fine

@JablonskiMateusz
Copy link
Contributor

please refactor commit msg as per https://github.com/intel/compute-runtime/blob/master/CONTRIBUTING.md#3-patch-submission

each line has 80 character limit

@JablonskiMateusz
Copy link
Contributor

merged at e4ed6f0

@JablonskiMateusz JablonskiMateusz added the merged change was merged label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged change was merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants