Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

已更新 2025年5月

vEventGroupDelete()

[事件组 API]

event_groups.h

1 void vEventGroupDelete( EventGroupHandle_t xEventGroup );

删除先前的事件组, 该事件组通过调用 xEventGroupCreate()创建。

在被删除的事件组上阻塞的任务将被取消阻塞,并且 报告事件组值为 0。

必须将 RTOS 源文件 FreeRTOS/source/event_groups.c 包含在构建中,vEventGroupDelete() 函数才可用。

无法从中断调用此函数。

参数:

  • xEventGroup

    要删除的事件组。

返回:

无。