Go to the source code of this file.
Macros | |
#define | XSENS_INVALID_THREAD 0 |
#define | XSENS_THREAD_PARAM void* |
#define | XSENS_THREAD_RETURN void* |
#define | XSENS_THREAD_TYPE |
#define | XSENS_USE_POSIX_LOCKING 1 |
#define | xsGetCurrentThreadId() pthread_self() |
#define | xsResumeThread(thrd) |
#define | xsSetThreadPriority(thrd, prio) |
#define | xsSuspendThread(thrd) |
#define | xsYield() sched_yield() |
Release the remainder of the timeslice so other operations can run. More... | |
Typedefs | |
typedef pthread_t | XsThread |
A handle for a thread. More... | |
typedef pthread_t | XsThreadId |
typedef enum XsThreadPriority | XsThreadPriority |
Enumerations | |
enum | XsThreadPriority { XS_THREAD_PRIORITY_LOWEST = 0, XS_THREAD_PRIORITY_LOWER = 1, XS_THREAD_PRIORITY_LOW = 2, XS_THREAD_PRIORITY_NORMAL = 3, XS_THREAD_PRIORITY_HIGH = 4, XS_THREAD_PRIORITY_HIGHER = 5, XS_THREAD_PRIORITY_HIGHEST = 6 } |
Thread priorities for xsSetThreadPriority() and xsGetThreadPriority() More... | |
Functions | |
XSTYPES_DLL_API void | xsNameThisThread (const char *threadName) |
Set the name of the current thread to threadName. More... | |
pthread_t | xsStartThread (void *(func)(void *), void *param, void *pid) |
Start a function as a thread. More... | |
#define XSENS_INVALID_THREAD 0 |
Definition at line 179 of file xsthread.h.
#define XSENS_THREAD_PARAM void* |
Definition at line 177 of file xsthread.h.
#define XSENS_THREAD_RETURN void* |
Definition at line 175 of file xsthread.h.
#define XSENS_THREAD_TYPE |
Definition at line 176 of file xsthread.h.
#define XSENS_USE_POSIX_LOCKING 1 |
Definition at line 202 of file xsthread.h.
#define xsGetCurrentThreadId | ( | ) | pthread_self() |
Definition at line 191 of file xsthread.h.
#define xsResumeThread | ( | thrd | ) |
Definition at line 193 of file xsthread.h.
#define xsSetThreadPriority | ( | thrd, | |
prio | |||
) |
Definition at line 194 of file xsthread.h.
#define xsSuspendThread | ( | thrd | ) |
Definition at line 192 of file xsthread.h.
#define xsYield | ( | ) | sched_yield() |
Release the remainder of the timeslice so other operations can run.
Definition at line 182 of file xsthread.h.
typedef pthread_t XsThread |
A handle for a thread.
Definition at line 186 of file xsthread.h.
typedef pthread_t XsThreadId |
Definition at line 187 of file xsthread.h.
typedef enum XsThreadPriority XsThreadPriority |
Definition at line 214 of file xsthread.h.
pthread_t xsStartThread | ( | void * | func)(void *, |
void * | param, | ||
void * | pid | ||
) |
Start a function as a thread.
Definition at line 156 of file xsthread.c.