Boost :: thread without splash?

Is there a way to use streaming capabilities without the whole boost library? What are the minimum h and cpp files needed for this?

thanks

+4
source share
4 answers

http://www.boost.org/doc/libs/1_43_0/doc/html/thread.html

In accordance with the foregoing, you need at least

#include <boost/thread.hpp>

+1
source

You need to use the boost bcp tool , which will copy only those parts of boost that are necessary for any of your libraries of choice.

+11
source

Actually a small library created for this purpose: TinyThread ++

It gives you (sort of) a subset of the upcoming standard C ++ 0x streaming API in one .h file and one .cpp file (no complex build, no dependencies). And, it is very portable (and open source, of course).

Hope this helps ...

+3
source

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 implement some of these things, for example gcc 4.5 +

0
source

All Articles