michaeltyson / TPCircularBuffer

A simple, fast circular buffer implementation
http://atastypixel.com/blog/a-simple-fast-circular-buffer-implementation-for-audio-processing/
839 stars 141 forks source link

Remove using std from header file. #16

Closed dave234 closed 6 years ago

dave234 commented 6 years ago

Using std in header was creating ambiguous reference problems for atomic_int. Fixed by typedefing atomicInt to atomic_int if C, or std::atomic_int if Cpp. Also made atomicFetchAdd macro to accomplish the same for atomicFetchAdd, though it wasn't causing any problems.

michaeltyson commented 6 years ago

Thanks, @dave234 !