36 #include <visp3/core/vpConfig.h>
37 #include <visp3/core/vpException.h>
39 #if defined(VISP_HAVE_PTHREAD) || (defined(_WIN32) && !defined(WINRT_8_0))
41 #if defined(VISP_HAVE_PTHREAD)
71 #if defined(VISP_HAVE_PTHREAD)
79 typedef LPTHREAD_START_ROUTINE
Fn;
109 #if defined(VISP_HAVE_PTHREAD)
110 int err = pthread_create(&
m_handle, NULL, fn, args);
114 #elif defined(_WIN32)
115 DWORD dwThreadIdArray;
133 #if defined(VISP_HAVE_PTHREAD)
134 #elif defined(_WIN32)
152 #if defined(VISP_HAVE_PTHREAD)
154 #elif defined(_WIN32)
155 #if defined(WINRT_8_1)
156 WaitForSingleObjectEx(
m_handle, INFINITE, FALSE);
158 WaitForSingleObject(
m_handle, INFINITE);
error that can be emitted 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.