浏览代码

log:事件组的使用

xuxinyi 4 月之前
父节点
当前提交
6d3e164ce4
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      main/application.cc

+ 11 - 0
main/application.cc

@@ -643,6 +643,17 @@ void Application::Schedule(std::function<void()> callback) {
 // If other tasks need to access the websocket or chat state,
 // they should use Schedule to call this function
 //主循环切换首发音频:由xEventGroupWaitBits事件触发。
+
+/**
+ * EventBits_t xEventGroupWaitBits(
+    EventGroupHandle_t xEventGroup,       // 事件组句柄
+    const EventBits_t uxBitsToWaitFor,    // 等待的标志位掩码
+    const BaseType_t xClearOnExit,        // 退出时是否清除标志位
+    const BaseType_t xWaitForAllBits,     // 是否等待所有位(1)或任意位(0)
+    TickType_t xTicksToWait                // 等待超时时间
+);
+ * 
+ */
 void Application::MainLoop() {
     while (true) {
         auto bits = xEventGroupWaitBits(event_group_,