lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip full duplex?


From: address@hidden
Subject: Re: [lwip-users] lwip full duplex?
Date: Wed, 19 Aug 2015 20:43:09 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Michael Steinberg wrote:
ChibiOS allows to close a mailbox while somebody is waiting on it, notifying the waiter. Is that generally possible on other platforms?

No, at least it's not a feature you can generally expect to have when writing a port.

is it really the most elegant solution to put all the guards into the connection stuff, instead of making the lwip-core itself threadsafe (conditionally)?

No, it's not the most elegant thing to do. And it certainly doesn't scale well when thinking of multi-processor systems. However, lwIP was first designed to be small and efficient for the raw API (which only needs one thread due to its nature of being callback-driven).

Making the core thread-safe would certainly be interesting, e.g. for further improving lwIP's performance in ReactOS. However, this is currently not a thing we aim to do.

Simon

reply via email to

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