4 #include <visp3/core/vpConfig.h>
5 #include <visp3/core/vpException.h>
7 #if defined(VISP_HAVE_PTHREAD) || (defined(_WIN32) && !defined(WINRT_8_0))
9 #if defined(VISP_HAVE_PTHREAD)
34 #if defined(VISP_HAVE_PTHREAD)
42 typedef LPTHREAD_START_ROUTINE
Fn;
74 #if defined(VISP_HAVE_PTHREAD)
75 int err = pthread_create(&
m_handle, NULL, fn, args);
78 "Can't create thread : %s", strerror(err));
81 DWORD dwThreadIdArray;
100 #if defined(VISP_HAVE_PTHREAD)
101 #elif defined(_WIN32)
119 #if defined(VISP_HAVE_PTHREAD)
121 #elif defined(_WIN32)
122 # if defined(WINRT_8_1)
123 WaitForSingleObjectEx(
m_handle, INFINITE, FALSE);
125 WaitForSingleObject(
m_handle, INFINITE);
error that can be emited by ViSP classes.
Handle m_handle
Thread handle.
void create(vpThread::Fn fn, vpThread::Args args=NULL)
bool m_isCreated
Indicates if the thread is created.
bool m_isJoinable
Indicates if the thread is joinable.
vpThread(vpThread::Fn fn, vpThread::Args args=NULL)