refactor: don't redeclare an STL type in cl_execution_environment.h

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 77b88f19a1.

Signed-off-by: rcombs <rcombs@rcombs.me>
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
rcombs
2023-04-20 17:17:02 -05:00
committed by Compute-Runtime-Automation
parent e8ac22c265
commit e4ed6f07f3

View File

@ -8,13 +8,10 @@
#pragma once
#include "shared/source/execution_environment/execution_environment.h"
#include <mutex>
#include <utility>
#include <vector>
namespace std {
struct once_flag;
}
namespace NEO {
class AsyncEventsHandler;
@ -33,4 +30,4 @@ class ClExecutionEnvironment : public ExecutionEnvironment {
std::vector<std::unique_ptr<BuilderT[]>> builtinOpsBuilders;
std::unique_ptr<AsyncEventsHandler> asyncEventsHandler;
};
} // namespace NEO
} // namespace NEO