From 705a425a7df0b62450ee4c8b4dcab00d41195e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 19 Nov 2024 13:36:40 +0100 Subject: [PATCH] Use typedef long __tsan_atomic64; --- lib/portaudio/pa_ringbuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/portaudio/pa_ringbuffer.h b/lib/portaudio/pa_ringbuffer.h index 400aaac659b..773e000ee5b 100644 --- a/lib/portaudio/pa_ringbuffer.h +++ b/lib/portaudio/pa_ringbuffer.h @@ -83,7 +83,7 @@ typedef long ring_buffer_size_t; typedef long ring_buffer_size_t; #endif - +typedef long __tsan_atomic64; #ifdef __cplusplus extern "C" @@ -93,8 +93,8 @@ extern "C" typedef struct PaUtilRingBuffer { ring_buffer_size_t bufferSize; /**< Number of elements in FIFO. Power of 2. Set by PaUtil_InitRingBuffer. */ - volatile ring_buffer_size_t writeIndex; /**< Index of next writable element. Set by PaUtil_AdvanceRingBufferWriteIndex. */ - volatile ring_buffer_size_t readIndex; /**< Index of next readable element. Set by PaUtil_AdvanceRingBufferReadIndex. */ + volatile __tsan_atomic64 writeIndex; /**< Index of next writable element. Set by PaUtil_AdvanceRingBufferWriteIndex. */ + volatile __tsan_atomic64 readIndex; /**< Index of next readable element. Set by PaUtil_AdvanceRingBufferReadIndex. */ ring_buffer_size_t bigMask; /**< Used for wrapping indices with extra bit to distinguish full/empty. */ ring_buffer_size_t smallMask; /**< Used for fitting indices to buffer. */ ring_buffer_size_t elementSizeBytes; /**< Number of bytes per element. */