I am trying to synchronize a bunch of threads using a thread barrier. I tried to use Boost::barrier to do it but I have run into some linking issues : Compiling Bullet physics and Boost together as static libraries
So while it may take some time to get it resolved, I have decided to proceed with my own thread barrier class. The barrier mechanism needs to be low latency as I will use it for a real time simulator. I have looked at some options here :
Writing a (spinning) thread barrier using c++11 atomics
However it uses C++ atomics which I think is not mature enough in Visual Studio 2010. I am trying to pull together my own thread barrier class using only win32 API and I was looking at this :
http://adilevin.wordpress.com/category/multithreading/
I was wondering if anyone has a better suggestion. I would rather not have external library dependencies and use only C++ and the win32 api for now.