Macros | Typedefs | Enumerations | Functions
xsthread.h File Reference
#include "xstime.h"
#include <pthread.h>
#include <semaphore.h>
#include <errno.h>
Include dependency graph for xsthread.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ XSENS_INVALID_THREAD

#define XSENS_INVALID_THREAD   0

Definition at line 179 of file xsthread.h.

◆ XSENS_THREAD_PARAM

#define XSENS_THREAD_PARAM   void*

Definition at line 177 of file xsthread.h.

◆ XSENS_THREAD_RETURN

#define XSENS_THREAD_RETURN   void*

Definition at line 175 of file xsthread.h.

◆ XSENS_THREAD_TYPE

#define XSENS_THREAD_TYPE

Definition at line 176 of file xsthread.h.

◆ XSENS_USE_POSIX_LOCKING

#define XSENS_USE_POSIX_LOCKING   1

Definition at line 202 of file xsthread.h.

◆ xsGetCurrentThreadId

#define xsGetCurrentThreadId ( )    pthread_self()

Definition at line 191 of file xsthread.h.

◆ xsResumeThread

#define xsResumeThread (   thrd)

Definition at line 193 of file xsthread.h.

◆ xsSetThreadPriority

#define xsSetThreadPriority (   thrd,
  prio 
)

Definition at line 194 of file xsthread.h.

◆ xsSuspendThread

#define xsSuspendThread (   thrd)

Definition at line 192 of file xsthread.h.

◆ xsYield

#define xsYield ( )    sched_yield()

Release the remainder of the timeslice so other operations can run.

Definition at line 182 of file xsthread.h.

Typedef Documentation

◆ XsThread

typedef pthread_t XsThread

A handle for a thread.

Definition at line 186 of file xsthread.h.

◆ XsThreadId

typedef pthread_t XsThreadId

Definition at line 187 of file xsthread.h.

◆ XsThreadPriority

Definition at line 214 of file xsthread.h.

Function Documentation

◆ xsStartThread()

pthread_t xsStartThread ( void *  func)(void *,
void *  param,
void *  pid 
)

Start a function as a thread.

Definition at line 156 of file xsthread.c.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21