Saturday, August 16, 2014
Using C++11 std::future to push data from producer to multiple consumers
This is an example of using C++11's std::future to move data from a data producer to multiple consumer threads, in a very stable and thread-safe way. And hopefully it is at least as efficient as the alternatives:
http://stackoverflow.com/a/25339704/841830
Critiques of my approach (or of the alternatives) are very welcome.
Labels:
C++11,
parallelization
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment