From aa545fbbc6de10a52672df5b7cbb024fb786a194 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 10 Jul 2019 21:14:35 +0200 Subject: [PATCH] LWIP_NETCONN_FULLDUPLEX is not alpha any more --- src/core/init.c | 5 +++-- src/include/lwip/opt.h | 7 ++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/core/init.c b/src/core/init.c index 1f658676..f6d36691 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -237,8 +237,9 @@ PACK_STRUCT_END #error "NETCONN_MORE != TCP_WRITE_FLAG_MORE" #endif #endif /* LWIP_NETCONN && LWIP_TCP */ -#if LWIP_SOCKET -#endif /* LWIP_SOCKET */ +#if LWIP_NETCONN_FULLDUPLEX && !LWIP_NETCONN_SEM_PER_THREAD +#error "For LWIP_NETCONN_FULLDUPLEX to work, LWIP_NETCONN_SEM_PER_THREAD is required" +#endif /* Compile-time checks for deprecated options. diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 133b0ef9..84f2b645 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -1959,11 +1959,8 @@ /** LWIP_NETCONN_FULLDUPLEX==1: Enable code that allows reading from one thread, * writing from a 2nd thread and closing from a 3rd thread at the same time. - * ATTENTION: This is currently really alpha! Some requirements: - * - LWIP_NETCONN_SEM_PER_THREAD==1 is required to use one socket/netconn from - * multiple threads at once - * - sys_mbox_free() has to unblock receive tasks waiting on recvmbox/acceptmbox - * and prevent a task pending on this during/after deletion + * LWIP_NETCONN_SEM_PER_THREAD==1 is required to use one socket/netconn from + * multiple threads at once! */ #if !defined LWIP_NETCONN_FULLDUPLEX || defined __DOXYGEN__ #define LWIP_NETCONN_FULLDUPLEX 0