Hacker News new | ask | show | jobs
by hitlin37 3485 days ago
ok, i have been also looking into concurrent vectors lately to get something like this running between two threads.

Someone know or point here to a header only implementation of vector/queue with locks and really simple code with explanation ? Something written as beautifully as herb sutter's or scott meyers examples, They are easy code to play around and understand :)

*An implementation without vendor concurrent library. Looking for an implementation on Linux/ARM. Although i do have access to libpthread threads and locks.

1 comments

A really simple templated queue that uses std::mutex.

https://gist.github.com/AlexanderDzhoganov/cffa9aaae5a325cdf...

Thanks, i will give it a try.