|
@@ -643,6 +643,17 @@ void Application::Schedule(std::function<void()> callback) {
|
|
|
// If other tasks need to access the websocket or chat state,
|
|
// If other tasks need to access the websocket or chat state,
|
|
|
// they should use Schedule to call this function
|
|
// they should use Schedule to call this function
|
|
|
//主循环切换首发音频:由xEventGroupWaitBits事件触发。
|
|
//主循环切换首发音频:由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() {
|
|
void Application::MainLoop() {
|
|
|
while (true) {
|
|
while (true) {
|
|
|
auto bits = xEventGroupWaitBits(event_group_,
|
|
auto bits = xEventGroupWaitBits(event_group_,
|