I currently require an atomic variable to cleanly exit my multi threaded program. On receiving a signal(such as SIGINT), the atomic variable is set to false, my threads exit, join the main program and I have a clean exit.
I however cannot use C++11 (building with C++ 11 causes too many compile errors).
My current boost library(ver 1.51) dosen't support atomic variables.
- Do I have any other options available?
- Do I even require an atomic variable, since it is set only at one location and read everywhere else
So far I know that version of boost library should support atomic variables.
Give a look in boost/interprocess/detail/atomic.hpp