|
From: | Joel Cunningham |
Subject: | Re: [lwip-users] lwip_sendto hanging with lwip 2.0 |
Date: | Wed, 25 Jan 2017 08:54:46 -0600 |
If you want to send and receive on the same socket from two different threads, you’ll need to enable LWIP_NETCONN_FULLDUPLEX in opt.h (by default it’s not supported and feature is in alpha state): /** 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 */ #if !defined LWIP_NETCONN_FULLDUPLEX || defined __DOXYGEN__ #define LWIP_NETCONN_FULLDUPLEX 0 #endif Joel
|
[Prev in Thread] | Current Thread | [Next in Thread] |