move thread local variables out of parsing scope
This commit is contained in:
		
							parent
							
								
									46a7e46068
								
							
						
					
					
						commit
						08cc2bbd70
					
				@ -173,15 +173,14 @@ int Extractor::Run(int argc, char *argv[])
 | 
			
		||||
            tbb::parallel_for(tbb::blocked_range<std::size_t>(0, osm_elements.size()),
 | 
			
		||||
                              [&](const tbb::blocked_range<std::size_t> &range)
 | 
			
		||||
                              {
 | 
			
		||||
                ExtractionNode result_node;
 | 
			
		||||
                ExtractionWay result_way;
 | 
			
		||||
                lua_State * local_state = scripting_environment.get_lua_state();
 | 
			
		||||
 | 
			
		||||
                for (auto x = range.begin(); x != range.end(); ++x)
 | 
			
		||||
                {
 | 
			
		||||
                    const auto entity = osm_elements[x];
 | 
			
		||||
 | 
			
		||||
                    ExtractionNode result_node;
 | 
			
		||||
                    ExtractionWay result_way;
 | 
			
		||||
 | 
			
		||||
                    lua_State * local_state = scripting_environment.get_lua_state();
 | 
			
		||||
 | 
			
		||||
                    switch (entity->type())
 | 
			
		||||
                    {
 | 
			
		||||
                    case osmium::item_type::node:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user