summaryrefslogtreecommitdiff
path: root/src/common/bounded_threadsafe_queue.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement HardwareOpusGravatar Kelebek12023-09-161-2/+2
|
* bounded_threadsafe_queue: Refactor PopGravatar Morph2023-03-211-140/+62
| | | | Introduces PopModes to bring waiting logic into Pop, similar to Push.
* bounded_threadsafe_queue: Add producer cv to avoid busy waitingGravatar Morph2023-03-211-17/+29
|
* bounded_threadsafe_queue: Deduplicate and add PushModesGravatar Morph2023-03-211-86/+84
| | | | | | | Adds the PushModes Try and Wait to allow producers to specify how they want to push their data to the queue if the queue is full. If the queue is full: - Try will fail to push to the queue, returning false. Try only returns true if it successfully pushes to the queue. This may result in items not being pushed into the queue. - Wait will wait until a slot is available to push to the queue, resulting in potential for deadlock if a consumer is not running.
* bounded_threadsafe_queue: Add TryPushGravatar Morph2023-03-211-0/+71
|
* bounded_threadsafe_queue: Use simplified impl of bounded queueGravatar Morph2023-03-211-112/+199
| | | | Provides a simplified SPSC, MPSC, and MPMC bounded queue implementation using mutexes.
* common: bounded_threadsafe_queue: Use polyfill_thread.Gravatar bunnei2023-03-171-2/+3
|
* CMakeLists: Disable C4100 and C4324Gravatar Morph2022-10-221-9/+0
| | | | Disabling C4100 is similar to -Wno-unused-parameter
* bounded_threadsafe_queue: Use constexpr capacity and maskGravatar Morph2022-06-151-86/+73
| | | | | | | | While this is the primary change, we also: - Remove the mpsc namespace and rename Queue to MPSCQueue - Make Slot a private struct within MPSCQueue - Remove the AlignedAllocator template argument, as we use std::allocator - Replace instances of mask + 1 with capacity, and mask + 2 with capacity + 1
* gpu_thread: Move to bounded queueGravatar Levi Behunin2022-06-021-0/+180