TaskManagement.h
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
********************************************************************
* @file TaskManagement.h
*
*
*********************************************************************
*/
/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef JZSDK_TASK_MANAGEMENT_H
#define JZSDK_TASK_MANAGEMENT_H
/* Includes ------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
/* Exported types ------------------------------------------------------------*/
//用于传递指针函数的类型
typedef struct t_JZsdk_TaskFuntionInput{
void (*task_function)(void*); //任务函数指针,用于指定 执行的任务
void *args; // 任务参数 //任务参数的地址 用于输入任务内容
} t_JZsdk_TaskFuntionInput;
/* Exported functions --------------------------------------------------------*/
T_JZsdkReturnCode TaskManagement_Init();
T_JZsdkReturnCode TaskManagement_SubmitTask(void (*task_function)(void*), void* data);
#ifdef __cplusplus
}
#endif
#endif