Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless thread_local.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 19 Jul 2018 19:34:46 +0000 (21:34 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 26 Jul 2018 20:21:15 +0000 (22:21 +0200)
It doesn't make any difference if context/factory is not "thread".

src/plugins/host_energy.cpp

index 9190065..4140bef 100644 (file)
@@ -351,7 +351,7 @@ void HostEnergy::init_watts_range_list()
         current_power_values.push_back(current_power_values.at(1));
       } else { // size == 3
         current_power_values[2] = current_power_values.at(1);
-        static thread_local bool displayed_warning = false; 
+        static bool displayed_warning = false;
         if (not displayed_warning) { // Otherwise we get in the worst case no_pstate*no_hosts warnings
           XBT_WARN("Host %s is a single-core machine and part of the power profile is '%s'"
                    ", which is in the 'Idle:OneCore:AllCores' format."