mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 18:10:05 +00:00 
			
		
		
		
	Some parallel loops cannot be vectorized
This commit is contained in:
		
							parent
							
								
									012d70b3a2
								
							
						
					
					
						commit
						e86fec8d99
					
				
					 3 changed files with 7 additions and 7 deletions
				
			
		|  | @ -175,7 +175,7 @@ public: | |||
|       level2ChunksProviderManager_->Disable(); | ||||
| 
 | ||||
|       std::shared_lock lock(level3ProviderManagerMutex_); | ||||
|       std::for_each(std::execution::par_unseq, | ||||
|       std::for_each(std::execution::par, | ||||
|                     level3ProviderManagerMap_.begin(), | ||||
|                     level3ProviderManagerMap_.end(), | ||||
|                     [](auto& p) | ||||
|  | @ -693,7 +693,7 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group, | |||
|                auto availableProducts = | ||||
|                   providerManager->provider_->GetAvailableProducts(); | ||||
| 
 | ||||
|                if (std::find(std::execution::par_unseq, | ||||
|                if (std::find(std::execution::par, | ||||
|                              availableProducts.cbegin(), | ||||
|                              availableProducts.cend(), | ||||
|                              product) != availableProducts.cend()) | ||||
|  | @ -920,13 +920,13 @@ RadarProductManager::GetActiveVolumeTimes( | |||
| 
 | ||||
|    // For each provider (in parallel)
 | ||||
|    std::for_each( | ||||
|       std::execution::par_unseq, | ||||
|       std::execution::par, | ||||
|       providers.begin(), | ||||
|       providers.end(), | ||||
|       [&](const std::shared_ptr<provider::NexradDataProvider>& provider) | ||||
|       { | ||||
|          // For yesterday, today and tomorrow (in parallel)
 | ||||
|          std::for_each(std::execution::par_unseq, | ||||
|          std::for_each(std::execution::par, | ||||
|                        dates.begin(), | ||||
|                        dates.end(), | ||||
|                        [&](const auto& date) | ||||
|  | @ -1246,7 +1246,7 @@ void RadarProductManagerImpl::PopulateProductTimes( | |||
|    std::mutex                                      volumeTimesMutex {}; | ||||
| 
 | ||||
|    // For yesterday, today and tomorrow (in parallel)
 | ||||
|    std::for_each(std::execution::par_unseq, | ||||
|    std::for_each(std::execution::par, | ||||
|                  dates.begin(), | ||||
|                  dates.end(), | ||||
|                  [&](const auto& date) | ||||
|  |  | |||
|  | @ -62,7 +62,7 @@ LoadImageResources(const std::vector<std::string>& urlStrings) | |||
|    std::mutex                                              m {}; | ||||
|    std::vector<std::shared_ptr<boost::gil::rgba8_image_t>> images {}; | ||||
| 
 | ||||
|    std::for_each(std::execution::par_unseq, | ||||
|    std::for_each(std::execution::par, | ||||
|                  urlStrings.begin(), | ||||
|                  urlStrings.end(), | ||||
|                  [&](auto& urlString) | ||||
|  |  | |||
|  | @ -449,7 +449,7 @@ TextureAtlas::Impl::LoadImage(const std::string& imagePath, double scale) | |||
|          if (numChannels == 3) | ||||
|          { | ||||
|             std::for_each( | ||||
|                std::execution::par_unseq, | ||||
|                std::execution::par, | ||||
|                view.begin(), | ||||
|                view.end(), | ||||
|                [](boost::gil::rgba8_pixel_t& pixel) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat