UINT32 LOS_TaskInfoMonitor ( VOID   ) 

Obtain all tasks info.

Description:
This API is used to obtain all tasks info.
注意:
  • This API can be called only after the CPU usage is initialized. Otherwise, -1 will be returned.
参数:
参数名称 描述
None. 
返回值:
返回值 描述
OS_ERROR  -1:all tasks info obtain failed.
LOS_OK  0:all tasks info is successfully obtained.
Dependency:
  • los_monitor.h: the header file that contains the API declaration.
参见:
LOS_TaskInfoMonitor
自从:
Huawei LiteOS V100R001C00