41 #include <visp3/core/vpConfig.h>
42 #include <visp3/core/vpException.h>
44 #if defined(VISP_HAVE_PTHREAD) || (defined(_WIN32) && !defined(WINRT_8_0))
46 #if defined(VISP_HAVE_PTHREAD)
76 #if defined(VISP_HAVE_PTHREAD)
84 typedef LPTHREAD_START_ROUTINE
Fn;
114 #if defined(VISP_HAVE_PTHREAD)
115 int err = pthread_create(&
m_handle, NULL, fn, args);
119 #elif defined(_WIN32)
120 DWORD dwThreadIdArray;
138 #if defined(VISP_HAVE_PTHREAD)
139 #elif defined(_WIN32)
157 #if defined(VISP_HAVE_PTHREAD)
159 #elif defined(_WIN32)
160 #if defined(WINRT_8_1)
161 WaitForSingleObjectEx(
m_handle, INFINITE, FALSE);
163 WaitForSingleObject(
m_handle, INFINITE);
error that can be emited by ViSP classes.
@ cannotUseConstructorError
Contructor error.
bool m_isCreated
Indicates if the thread is created.
void create(vpThread::Fn fn, vpThread::Args args=NULL)
vpThread(vpThread::Fn fn, vpThread::Args args=NULL)
Handle m_handle
Thread handle.
bool m_isJoinable
Indicates if the thread is joinable.