[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] Preparing for LWIP_NETCONN_FULLDUPLEX, unclear what sou
Re: [lwip-devel] Preparing for LWIP_NETCONN_FULLDUPLEX, unclear what source code comment means
Mon, 17 Feb 2020 21:30:54 +0100
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
Am 23.01.2020 um 13:44 schrieb Benjamin Kalytta:
> I've a question concerning a source code comment in opt.h related to
> LWIP_NETCONN_FULLDUPLEX = 1
> /** LWIP_NETCONN_FULLDUPLEX==1: Enable code that allows reading from one
> * 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
> * and prevent a task pending on this during/after deletion
> #if !defined LWIP_NETCONN_FULLDUPLEX || defined __DOXYGEN__
> #define LWIP_NETCONN_FULLDUPLEX 0
Even if this answer might be coming late: this comment is outdated. The
fullduplex code (for netconn and sockets) has been changed a great deal
and this comment has been removed some time ago.
What you're looking at is the "old" code of the last release. Try the
git master branch instead.
A release on that code base should follow soon...
|[Prev in Thread]
||[Next in Thread]|
- Re: [lwip-devel] Preparing for LWIP_NETCONN_FULLDUPLEX, unclear what source code comment means,