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.
No comments:
Post a Comment