20#ifndef IOTMI_PAL_THREAD_H_
21#define IOTMI_PAL_THREAD_H_
32struct iotmiPal_ThreadStruct;
33typedef struct iotmiPal_ThreadStruct iotmiPal_ThreadStruct_t;
34typedef struct iotmiPal_ThreadStruct* iotmiPal_ThreadHandle_t;
49 IOTMI_PAL_THREAD_URGENT = 0,
50 IOTMI_PAL_THREAD_NORMAL,
51 IOTMI_PAL_THREAD_BACKGROUND,
54 IOTMI_PAL_THREAD_MQTT_AGENT,
55 IOTMI_PAL_THREAD_DATA_MODEL_HANDLER,
56 IOTMI_PAL_THREAD_JOB_HANDLER,
void(* iotmiPal_ThreadFunction_t)(void *pParam)
Thread function to be executed in the created thread.
Definition iotmi_pal_Thread.h:42
enum iotmiPal_ThreadType iotmiPal_ThreadType_t
Thread type to be created.
void iotmiPal_threadSleepMs(uint32_t sleepTimeMs)
Millisecond sleep function.
int iotmiPal_threadJoin(iotmiPal_ThreadHandle_t threadHandle)
Thread join function.
iotmiPal_ThreadHandle_t iotmiPal_threadCreate(const char *pThreadname, iotmiPal_ThreadType_t threadType, iotmiPal_ThreadFunction_t threadFunc, void *pParam)
Create thread function.
iotmiPal_ThreadType
Thread type to be created.
Definition iotmi_pal_Thread.h:47