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) 39 #if defined(VISP_HAVE_PTHREAD) 47 typedef LPTHREAD_START_ROUTINE
Fn;
77 #if defined(VISP_HAVE_PTHREAD) 78 int err = pthread_create(&
m_handle, NULL, fn, args);
83 DWORD dwThreadIdArray;
101 #if defined(VISP_HAVE_PTHREAD) 102 #elif defined(_WIN32) 120 #if defined(VISP_HAVE_PTHREAD) 122 #elif defined(_WIN32) 123 #if defined(WINRT_8_1) 124 WaitForSingleObjectEx(
m_handle, INFINITE, FALSE);
126 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)