Comments (4)
Hello @lujuntuan , can you elaborate on how this would work without dynamic allocation?
from lockfree.
Hi @DNedic ,I'm sorry that my explanation may not be clear.
The size of the queue is currently specified by template parameters. Can you add the function of dynamically specifying the queue size?
like:
lockfree::mpmc::Queue<int16_t> queue(20);
now is:
lockfree::mpmc::Queue<int16_t, 20> queue;
thanks~
from lockfree.
I'm going to assume you want to be able to dynamically allocate the internal buffer this way. This is not something that we currently intend to support, but I will leave the issue as a feature request.
from lockfree.
Closing this as I have received no further info and I don't intend to support dynamic allocation inside the library itself.
from lockfree.
Related Issues (6)
- README should mention C++20 is needed to run tests HOT 1
- There are no 'How it works' sections in data structure READMEs HOT 2
- SPSC Ring Buffer variable length string support HOT 4
- Are the tests done using multiple threads? HOT 3
- Visual Studio expands the __cplusplus macro to 199711L by default regardless of C++ std being used. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lockfree.