lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] udp_send / udp_recv thread safefy


From: Ricardo Martins
Subject: Re: [lwip-users] udp_send / udp_recv thread safefy
Date: Fri, 8 Sep 2017 14:56:06 +0100

Thanks, I'll use the tcpip_callback then.

Kind regards,
Ricardo martins

On Fri, Sep 8, 2017 at 2:52 PM, Dirk Ziegelmeier <address@hidden> wrote:
No, its not OK to call raw API functions from another thread.


Dirk

On Fri, Sep 8, 2017 at 12:04 PM, Ricardo Martins <address@hidden> wrote:
Hi,

I'm doing some work with LWIP 2.0.2 using the raw API to send and receive UDP datagrams and I have a doubt regarding the thread safety of udp_send and udp_recv. Right now I have a single UDP PCB instance and I'm handling incoming datagrams in one thread using the recv callback (I assume this thread is the tcpip_thread) and sending UDP datagrams in another thread. Is this safe or should I queue my UDP transmissions using the tcpip_callback_with_block ?

Kind regards,
Ricardo Martins

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]