mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-11-03 22:04:24 +00:00 
			
		
		
		
	Update threaded_queue.h (#82)
https://en.cppreference.com/w/cpp/language/fold
This commit is contained in:
		
							parent
							
								
									41fcc0272c
								
							
						
					
					
						commit
						d6ad864f11
					
				@ -48,8 +48,7 @@ private:
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  template <size_t... Is> void unlock_impl(std::index_sequence<Is...>) {
 | 
			
		||||
    (void)std::initializer_list<int>{
 | 
			
		||||
        (std::get<Is>(tuple_)->mutex_.unlock(), 0)...};
 | 
			
		||||
    (std::get<Is>(tuple_)->mutex_.unlock(), ...);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  std::tuple<Queue...> tuple_;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user