UINT32 LOS_CurTaskIDGet ( VOID   ) 

Obtain current running task ID.

Description:
This API is used to obtain the ID of current running task.
注意:
  • This interface should not be called before system initialized.
返回值:
返回值 描述
LOS_ERRNO_TSK_ID_INVALID  Invalid Task ID.
UINT32  Task ID.
Dependency:
  • los_task.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00