Skip to content

Commit

Permalink
Use typedef long __tsan_atomic64;
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Nov 19, 2024
1 parent 91213b4 commit 705a425
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/portaudio/pa_ringbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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. */
Expand Down

0 comments on commit 705a425

Please sign in to comment.