UINT32 LOS_EventInit ( PEVENT_CB_S  pstEventCB  ) 

Initialize an event control block.

Description:
This API is used to initialize the event control block pointed to by pstEventCB.
注意:
  • None.
参数:
参数名称 描述
pstEventCB  [IN/OUT] Pointer to the event control block to be initialized.
返回值:
返回值 描述
LOS_ERRNO_EVENT_PTR_NULL  Null pointer.
LOS_OK  The event control block is successfully initialized.
Dependency:
  • los_event.h: the header file that contains the API declaration.
参见:
LOS_EventClear
自从:
Huawei LiteOS V100R001C00