Fix locking in lwip net_if

Was not being enabled when it should have been.

CL: Fix locking in lwip net_if

PUBLISHED_FROM=4810e73417c7599f0ea08a09812ed320d02f7cae
This commit is contained in:
Deomid Ryabkov 2019-04-23 20:54:33 +01:00 committed by Cesanta Bot
parent 9884241df8
commit b4fbaf7c13
2 changed files with 4 additions and 2 deletions

View File

@ -15309,7 +15309,8 @@ void mg_lwip_if_add_conn(struct mg_connection *nc);
void mg_lwip_if_remove_conn(struct mg_connection *nc);
time_t mg_lwip_if_poll(struct mg_iface *iface, int timeout_ms);
#if defined(RTOS_SDK) || defined(ESP_PLATFORM)
// If compiling for Mongoose OS.
#ifdef MGOS_HAVE_CORE
extern void mgos_lock();
extern void mgos_unlock();
#else

View File

@ -102,7 +102,8 @@ void mg_lwip_if_add_conn(struct mg_connection *nc);
void mg_lwip_if_remove_conn(struct mg_connection *nc);
time_t mg_lwip_if_poll(struct mg_iface *iface, int timeout_ms);
#if defined(RTOS_SDK) || defined(ESP_PLATFORM)
// If compiling for Mongoose OS.
#ifdef MGOS_HAVE_CORE
extern void mgos_lock();
extern void mgos_unlock();
#else