26 #if STXXL_BOOST_THREADS
27 #include <boost/bind.hpp>
29 #if STXXL_STD_THREADS && STXXL_MSVC >= 1700
37 assert(s() == NOT_RUNNING);
39 t =
new std::thread(worker, arg);
40 #elif STXXL_BOOST_THREADS
41 t =
new boost::thread(boost::bind(worker, arg));
50 assert(s() == RUNNING);
54 #if STXXL_MSVC >= 1700
65 WaitForSingleObject(t->native_handle(), INFINITE);
66 CloseHandle(t->native_handle());
72 #elif STXXL_BOOST_THREADS
79 assert(s() == TERMINATED);
void set_to(const value_type &new_state)
#define STXXL_CHECK_PTHREAD_CALL(expr)
Checks pthread call, if return != 0, throws stxxl::resource_error with "Error in [function] : [pthrea...
#define STXXL_BEGIN_NAMESPACE
#define STXXL_END_NAMESPACE