Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

If I'm right you need some synchronization/locking to make visible every data change properly for every thread since two threads use the ring buffer at the same time: AppAudioStream_BufRecv and AppAudioStream_DecoderCb.

Two posts from SO which look useful:

If I'm right you need some synchronization/locking to make visible every data change properly for every thread since two threads use the ring buffer at the same time: AppAudioStream_BufRecv and AppAudioStream_DecoderCb.

Two posts from SO which look useful:

If I'm right you need some synchronization/locking to make visible every data change properly for every thread since two threads use the ring buffer at the same time: AppAudioStream_BufRecv and AppAudioStream_DecoderCb.

Two posts from SO which look useful:

Source Link
palacsint
  • 30.4k
  • 9
  • 82
  • 157

If I'm right you need some synchronization/locking to make visible every data change properly for every thread since two threads use the ring buffer at the same time: AppAudioStream_BufRecv and AppAudioStream_DecoderCb.

Two posts from SO which look useful:

lang-c

AltStyle によって変換されたページ (->オリジナル) /