47 #include <visp3/core/vpConfig.h> 49 #if defined(VISP_HAVE_PTHREAD) || (defined(_WIN32) && !defined(WINRT_8_0)) 54 #include <visp3/core/vpThread.h> 55 #include <visp3/core/vpTime.h> 73 unsigned int args_ = *((
unsigned int *)args);
74 std::cout <<
"qux arg: " << args_ << std::endl;
81 unsigned int qux_arg = 12;
88 std::cout <<
"Joinable after construction:" << std::endl;
89 std::cout <<
"foo: " << foo.
joinable() << std::endl;
90 std::cout <<
"bar: " << bar.joinable() << std::endl;
91 std::cout <<
"qux: " << qux.joinable() << std::endl;
95 std::cout <<
"Joinable after creation:" << std::endl;
96 std::cout <<
"foo: " << foo.
joinable() << std::endl;
97 std::cout <<
"bar: " << bar.joinable() << std::endl;
98 std::cout <<
"qux: " << qux.joinable() << std::endl;
107 std::cout <<
"Joinable after joining:" << std::endl;
108 std::cout <<
"foo: " << foo.
joinable() << std::endl;
109 std::cout <<
"bar: " << bar.joinable() << std::endl;
110 std::cout <<
"qux: " << qux.joinable() << std::endl;
122 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) // UNIX 123 std::cout <<
"You should enable pthread usage and rebuild ViSP..." << std::endl;
125 std::cout <<
"Multi-threading seems not supported on this platform" << std::endl;
VISP_EXPORT int wait(double t0, double t)
void create(vpThread::Fn fn, vpThread::Args args=NULL)