Go to the source code of this file.
Macros | |
#define | WINVER 0x0502 |
#define | _WIN32_WINNT 0x0502 |
#define | _WIN32_WINDOWS 0x0410 |
#define | _WIN32_IE 0x0600 |
#define | XSENS_THREAD_RETURN DWORD |
#define | XSENS_THREAD_TYPE WINAPI |
#define | XSENS_THREAD_PARAM LPVOID |
#define | XSENS_INVALID_THREAD INVALID_HANDLE_VALUE |
#define | xsYield() Sleep(0) |
Release the remainder of the timeslice so other operations can run. On Windows this is done using Sleep(0), since this is the most reliable method. SwitchToThread can cause delays since it does not allow the thread to resume on a different core. Sleep http://msdn.microsoft.com/en-us/library/ms686298%28v=vs.85%29.aspx SwitchToThread http://msdn.microsoft.com/en-us/library/ms686352%28v=vs.85%29.aspx. More... | |
#define | xsStartThread(func, param, pid) CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) func,param,0,pid) |
Start a function as a thread. More... | |
#define | xsGetCurrentThreadId() GetCurrentThreadId() |
#define | xsGetCurrentThreadHandle() GetCurrentThread() |
#define | xsSuspendThread(thrd) SuspendThread(thrd) |
#define | xsResumeThread(thrd) ResumeThread(thrd) |
#define | xsSetThreadPriority(thrd, prio) SetThreadPriority(thrd,prio) |
#define | xsGetThreadPriority(thrd) GetThreadPriority(thrd) |
Typedefs | |
typedef HANDLE | XsThread |
A handle for a thread. More... | |
typedef DWORD | XsThreadId |
typedef enum XsThreadPriority | XsThreadPriority |
Enumerations | |
enum | XsThreadPriority { XS_THREAD_PRIORITY_LOWEST = THREAD_PRIORITY_IDLE, XS_THREAD_PRIORITY_LOWER = THREAD_PRIORITY_LOWEST, XS_THREAD_PRIORITY_LOW = THREAD_PRIORITY_BELOW_NORMAL, XS_THREAD_PRIORITY_NORMAL = THREAD_PRIORITY_NORMAL, XS_THREAD_PRIORITY_HIGH = THREAD_PRIORITY_ABOVE_NORMAL, XS_THREAD_PRIORITY_HIGHER = THREAD_PRIORITY_HIGHEST, XS_THREAD_PRIORITY_HIGHEST = THREAD_PRIORITY_TIME_CRITICAL } |
Thread priorities for xsSetThreadPriority() and xsGetThreadPriority() More... | |
Functions | |
XSTYPES_DLL_API void | xsNameThisThread (const char *threadName) |
#define _WIN32_IE 0x0600 |
Definition at line 41 of file xsthread.h.
#define _WIN32_WINDOWS 0x0410 |
Definition at line 37 of file xsthread.h.
#define _WIN32_WINNT 0x0502 |
Definition at line 33 of file xsthread.h.
#define WINVER 0x0502 |
Definition at line 29 of file xsthread.h.
#define XSENS_INVALID_THREAD INVALID_HANDLE_VALUE |
Definition at line 67 of file xsthread.h.
Referenced by UsbInterface::open().
#define XSENS_THREAD_PARAM LPVOID |
Definition at line 65 of file xsthread.h.
#define XSENS_THREAD_RETURN DWORD |
Definition at line 63 of file xsthread.h.
#define XSENS_THREAD_TYPE WINAPI |
Definition at line 64 of file xsthread.h.
#define xsGetCurrentThreadHandle | ( | ) | GetCurrentThread() |
Definition at line 91 of file xsthread.h.
#define xsGetCurrentThreadId | ( | ) | GetCurrentThreadId() |
Definition at line 90 of file xsthread.h.
#define xsGetThreadPriority | ( | thrd | ) | GetThreadPriority(thrd) |
Definition at line 95 of file xsthread.h.
#define xsResumeThread | ( | thrd | ) | ResumeThread(thrd) |
Definition at line 93 of file xsthread.h.
#define xsSetThreadPriority | ( | thrd, | |
prio | |||
) | SetThreadPriority(thrd,prio) |
Definition at line 94 of file xsthread.h.
#define xsStartThread | ( | func, | |
param, | |||
pid | |||
) | CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) func,param,0,pid) |
Start a function as a thread.
Definition at line 86 of file xsthread.h.
Referenced by UsbInterface::open().
#define xsSuspendThread | ( | thrd | ) | SuspendThread(thrd) |
Definition at line 92 of file xsthread.h.
#define xsYield | ( | ) | Sleep(0) |
Release the remainder of the timeslice so other operations can run. On Windows this is done using Sleep(0), since this is the most reliable method. SwitchToThread can cause delays since it does not allow the thread to resume on a different core. Sleep http://msdn.microsoft.com/en-us/library/ms686298%28v=vs.85%29.aspx SwitchToThread http://msdn.microsoft.com/en-us/library/ms686352%28v=vs.85%29.aspx.
Definition at line 75 of file xsthread.h.
typedef HANDLE XsThread |
A handle for a thread.
Definition at line 78 of file xsthread.h.
typedef DWORD XsThreadId |
Definition at line 82 of file xsthread.h.
typedef enum XsThreadPriority XsThreadPriority |
Definition at line 155 of file xsthread.h.
XSTYPES_DLL_API void xsNameThisThread | ( | const char * | threadName | ) |
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |