|
From: | address@hidden |
Subject: | Re: [lwip-devel] Some netifapi functions handle pointers to stale objects |
Date: | Wed, 30 May 2012 22:18:16 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
Mason wrote:
Is it "safe" to call netif functions such as netif_set_link_up netif_set_link_down netif_set_up netif_set_down netif_add netif_set_addr from a thread other than tcpip_thread *IF* that thread is holding the tcpip_core lock (using LOCK_TCPIP_CORE). (NB: I've defined LWIP_TCPIP_CORE_LOCKING to 1)
Yes, it is safe.
Again, the answer is yes. That's what netconn/socket API does for core_locking==1.Can a thread call any API function, as long as it is holding the tcpip_core lock?
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |