is there a way to use boost's threading capabilities without the entire boost library? What are the bare minimum h and cpp files needed for this?
Thanks
is there a way to use boost's threading capabilities without the entire boost library? What are the bare minimum h and cpp files needed for this?
Thanks
http://www.boost.org/doc/libs/1_43_0/doc/html/thread.html
According to the above you need at least
#include <boost/thread.hpp>
You need to use the boost bcp tool which will copy only the parts of boost which are required for any of the libraries of your choice.
Soon you will have std::thread as a standardized version
http://www2.research.att.com/~bs/C++0xFAQ.html#std-thread
If you have access to C++0x, your favorite compiler may already have some of these things implemented like gcc 4.5+
There's actually a small library that was created for just this purpose: TinyThread++
It gives you (sort of) a subset of the upcoming C++0x standard threading API, in just one .h file and one .cpp file (no complicated build, no dependencies). And, it's very portable (and open source, of course).
Hope it helps...