mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
esp_ipc: fix race condition in ipc task
This commit is contained in:
Submodule components/asio/asio updated: f31694c9f1...3b66e5b051
Submodule components/bt/controller/lib updated: cfbb0571fb...fb49791b7c
Submodule components/bt/controller/lib_esp32c3_family deleted from 7ad49c38b8
Submodule components/bt/host/nimble/nimble updated: aef55bbf63...33179b3316
Submodule components/cbor/tinycbor updated: 085ca40781...d2dd95cb88
@@ -75,7 +75,6 @@ static void IRAM_ATTR ipc_task(void* arg)
|
||||
if (s_ipc_wait[cpuid] == IPC_WAIT_FOR_END) {
|
||||
xSemaphoreGive(s_ipc_ack[cpuid]);
|
||||
}
|
||||
s_func[cpuid] = NULL;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -142,6 +141,7 @@ static esp_err_t esp_ipc_call_and_wait(uint32_t cpu_id, esp_ipc_func_t func, voi
|
||||
s_ipc_wait[cpu_id] = wait_for;
|
||||
xSemaphoreGive(s_ipc_sem[cpu_id]);
|
||||
xSemaphoreTake(s_ipc_ack[cpu_id], portMAX_DELAY);
|
||||
s_func[cpu_id] = NULL;
|
||||
#ifdef CONFIG_ESP_IPC_USES_CALLERS_PRIORITY
|
||||
xSemaphoreGive(s_ipc_mutex[cpu_id]);
|
||||
#else
|
||||
|
Submodule components/esp_wifi/lib updated: e6945e61f7...fbcdc77c26
Submodule components/esptool_py/esptool updated: 2583017317...4698b39673
Submodule components/lwip/lwip updated: 2195f7416f...2c9c531f0a
Submodule components/mqtt/esp-mqtt updated: f10321a53b...9ea804e0ab
Submodule components/nghttp/nghttp2 updated: 8f7b008b15...3bcc416e13
Submodule components/tinyusb/tinyusb updated: 334e95fac5...28f89e1347
Reference in New Issue
Block a user