lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] mailbox implementation


From: MaX
Subject: Re: [lwip-devel] mailbox implementation
Date: Mon, 26 Sep 2011 23:26:24 +0100

> LwIP boxes are used in 2 places, if I remember correctly:
> a) as recv/accept mbox: these are SPSC (tcpip_thread produces, an application 
> thread consumes)
> b) the mbox tcpip_thread uses to process RX packets, netconn requests etc. This 
> one is a multiple-producer-single-consumer (netif RX thread and application 
> threads using the netconn/socket/netif-API produce, tcpip_thread consumes)

> Terefore, SPSC won't be enough, I guess.

Simon, 

thank you for the replay. SPSC queues would be not enough but MPSC ones are still better than MPMC queue, 
indeed we can at least save a CAS =)
MaX

reply via email to

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