From 8656a3983b9c5af56d41fdc8b7571467c7812a44 Mon Sep 17 00:00:00 2001 From: "Dementiev, Roman" Date: Tue, 7 Nov 2023 21:20:37 +0100 Subject: [PATCH] fix race condition in isHWTMAL1Supported Change-Id: Iea0760d1edc95d5ccd66ee69ab83314229e6f458 --- src/cpucounters.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpucounters.cpp b/src/cpucounters.cpp index 0f669469..e0c526f6 100644 --- a/src/cpucounters.cpp +++ b/src/cpucounters.cpp @@ -3504,6 +3504,7 @@ PCM::ErrorCode PCM::program(const PCM::ProgramMode mode_, const void * parameter lastProgrammedCustomCounters.clear(); lastProgrammedCustomCounters.resize(num_cores); core_global_ctrl_value = 0ULL; + isHWTMAL1Supported(); // ínit value to prevent MT races std::vector > asyncCoreResults; std::vector programmingStatuses(num_cores, PCM::Success);