We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e902d commit 70fa971Copy full SHA for 70fa971
opencl/source/tracing/tracing_notify.h
@@ -33,7 +33,7 @@ inline thread_local bool tracingInProgress = false;
33
bool isHostSideTracingEnabled_##name = false; \
34
bool currentlyTracedCall = false; \
35
HostSideTracing::name##Tracer tracer_##name; \
36
- if ((false == HostSideTracing::tracingInProgress) && TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire))) { \
+ if (TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire)) && (false == HostSideTracing::tracingInProgress)) { \
37
HostSideTracing::tracingInProgress = true; \
38
currentlyTracedCall = true; \
39
isHostSideTracingEnabled_##name = HostSideTracing::addTracingClient(); \
0 commit comments