[Top][All Lists]

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

[lwip-devel] [bug #52770] mdns: move the announcements to a timer callba

From: Douglas
Subject: [lwip-devel] [bug #52770] mdns: move the announcements to a timer callback
Date: Sun, 31 Dec 2017 08:37:18 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #7, bug #52770 (project lwip):

> So your starting to use core locking for a callback style application does
not really fit to lwIP the way it was.

Thank you that helps. So I'll remove the mdns thread safe entry points, and
make a note that the caller is expected to hold the core lock.

> Would it be too hard to write your application to call LOCK_TCPIP_CORE()
before calling into mdns? 

Yes, that seems workable.

Could assertions be added at some of these entry points, that require the core
lock held, to check that it really is? Might this be implemented within lwip
by a simple flag set by the LOCK_TCPIP_CORE() macro and cleared when

> Core locking is already the default and message passing should be removed in
one of the next releases, so you're OK with only implementing core locking

Will that mean the netifapi entry points are removed too? I just started to
use these, but should the caller be using LOCK_TCPIP_CORE() rather than these
if they are a dead end?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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