Skip to content

Commit 8656a39

Browse files
committed
fix race condition in isHWTMAL1Supported
Change-Id: Iea0760d1edc95d5ccd66ee69ab83314229e6f458
1 parent 8032c63 commit 8656a39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/cpucounters.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3504,6 +3504,7 @@ PCM::ErrorCode PCM::program(const PCM::ProgramMode mode_, const void * parameter
35043504
lastProgrammedCustomCounters.clear();
35053505
lastProgrammedCustomCounters.resize(num_cores);
35063506
core_global_ctrl_value = 0ULL;
3507+
isHWTMAL1Supported(); // ínit value to prevent MT races
35073508

35083509
std::vector<std::future<void> > asyncCoreResults;
35093510
std::vector<PCM::ErrorCode> programmingStatuses(num_cores, PCM::Success);

0 commit comments

Comments
 (0)