mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-11-04 04:34:07 +01:00 
			
		
		
		
	ring_buffer: Use feature macro
Co-Authored-By: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									96abe0d7d3
								
							
						
					
					
						commit
						553dac2ae0
					
				@ -103,7 +103,7 @@ private:
 | 
			
		||||
    // Having them on the same cache-line would result in false-sharing between them.
 | 
			
		||||
    // TODO: Remove this ifdef whenever clang and GCC support
 | 
			
		||||
    //       std::hardware_destructive_interference_size.
 | 
			
		||||
#if defined(_MSC_VER) && _MSC_VER >= 1911
 | 
			
		||||
#ifdef __cpp_lib_hardware_interference_size
 | 
			
		||||
    alignas(std::hardware_destructive_interference_size) std::atomic_size_t m_read_index{0};
 | 
			
		||||
    alignas(std::hardware_destructive_interference_size) std::atomic_size_t m_write_index{0};
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user