readerwriterqueue
smallfunction
Our great sponsors
readerwriterqueue | smallfunction | |
---|---|---|
4 | 2 | |
3,441 | 2 | |
- | - | |
0.0 | 2.4 | |
10 days ago | about 1 year ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
readerwriterqueue
-
MPMC suggestions where messages are sent to all consumers ?
I have looked at the commonly recommended - https://github.com/cameron314/readerwriterqueue - https://github.com/rigtorp/MPMCQueue
-
How to figure out the cause of my pi 4 crashing?
The PREEMPT error looks like its a C module but I cannot tell from he little snippet of the log - you may do better to move the *arr and Synchthing into Docker containers to keep the OS cleaner.
-
Qt 6.3 Released
For audio DSP in a Qt app I have good success with using a lock-free queue (e.g. https://github.com/cameron314/readerwriterqueue) to communicate from / to the UI threads. Code more-or-less looks like
connect(model, &ModelObject::somethingChanged, [=] {
-
ConorWilliams/ConcurrentDeque
We recently removed readerwriterqueue from our project due to issues and replaced with simple locking queue (and got better performance in the result). Your code looks interesting, but we can't use it due to C++17 usage.
smallfunction
-
Audio Libraries Considered Challenging
However, std::function which can be used for storing multiple closures can indeed heap allocated. Since this is undesirable, I use an equivalent with static fixed storage instead: https://github.com/jcelerier/smallfunction/blob/master/smallfun/include/smallfun.hpp which gives me a compile error if I try to stuff too much data in there.
-
Qt 6.3 Released
and conversely from the engine to the UI thread ; Qt signals do not cut it as emitting them allocate, if only a few bytes. (Doing it naively with std::function doesn't cut it either - I use this instead to store these functions: https://github.com/jcelerier/smallfunction/blob/master/small... ; also, the audio threads feeds back those functions into the main thread after their execution so that any memory owned by the lambda ends up being freed here and not in the audio thread.)
What are some alternatives?
moodycamel - A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
lqml
CUB - THIS REPOSITORY HAS MOVED TO github.com/nvidia/cub, WHICH IS AUTOMATICALLY MIRRORED HERE.
Nuitka - Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
MPMCQueue.h - A bounded multi-producer multi-consumer concurrent queue written in C++11
pub-dev - The pub.dev website
BlockingCollection - C++11 thread safe, multi-producer, multi-consumer blocking queue, stack & priority queue class
Poetry - Python packaging and dependency management made easy
HPX - The C++ Standard Library for Parallelism and Concurrency
score - ossia score, an interactive sequencer for the intermedia arts
Thrust - [ARCHIVED] The C++ parallel algorithms library. See https://github.com/NVIDIA/cccl
ledstudio