Open padenot opened 1 year ago
It's easy to get one in rust, but our backends aren't all in rust, and it will be best to have something in the meantime, see https://github.com/mozilla/cubeb-coreaudio-rs/pull/180.
@ChunMinChang suggests https://github.com/facebook/folly/blob/fe37daacf861700585d303b277138cb18a92686c/folly/MPMCQueue.h or https://github.com/cameron314/concurrentqueue.
For your consideration: https://github.com/yuzu-emu/yuzu/blob/master/src/common/bounded_threadsafe_queue.h
I contributed this queue to that project.
Its base design came from: https://github.com/rigtorp/MPMCQueue
It's easy to get one in rust, but our backends aren't all in rust, and it will be best to have something in the meantime, see https://github.com/mozilla/cubeb-coreaudio-rs/pull/180.
@ChunMinChang suggests https://github.com/facebook/folly/blob/fe37daacf861700585d303b277138cb18a92686c/folly/MPMCQueue.h or https://github.com/cameron314/concurrentqueue.