mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-28 21:33:32 +00:00
esp_netif/lwip: Fix core-locking config
* Fix thread safety issues in non-core locking * Add option to verify thread safety issues in lwip (core-lock assertion) * Make esp_sntp.h thread safe API * Fix sntp examples * Fix openthread libs Closes https://github.com/espressif/esp-idf/issues/9908 Closes https://github.com/espressif/esp-idf/issues/10502 Closes https://github.com/espressif/esp-idf/issues/10466
This commit is contained in:
@@ -100,6 +100,17 @@ sys_sem_t* sys_thread_sem_init(void);
|
||||
void sys_thread_sem_deinit(void);
|
||||
sys_sem_t* sys_thread_sem_get(void);
|
||||
|
||||
typedef enum {
|
||||
LWIP_CORE_LOCK_QUERY_HOLDER,
|
||||
LWIP_CORE_LOCK_MARK_HOLDER,
|
||||
LWIP_CORE_LOCK_UNMARK_HOLDER,
|
||||
LWIP_CORE_MARK_TCPIP_TASK,
|
||||
LWIP_CORE_IS_TCPIP_INITIALIZED,
|
||||
} sys_thread_core_lock_t;
|
||||
|
||||
bool
|
||||
sys_thread_tcpip(sys_thread_core_lock_t type);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user