For a real time DSP program in C, I need something like Go-style channels to communicate between threads:
- One thread pushes tokens on the channel
- Another thread pulls tokens from the channel
- The channel has a buffer
- In my case, tokens have a small memory footprint (small vectors of numbers)
I was wondering if using good old streams was a good idea, or not. If not, is there a good practice and/or a library to get something as close as Go channels as possible?