mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
Replace usages of tcpip_callback_with_block(foo, bar, 0) with tcpip_try_callback()
This commit is contained in:
@@ -1000,7 +1000,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p)
|
||||
|
||||
#if LWIP_NETIF_LOOPBACK_MULTITHREADING
|
||||
/* For multithreading environment, schedule a call to netif_poll */
|
||||
tcpip_callback_with_block((tcpip_callback_fn)netif_poll, netif, 0);
|
||||
tcpip_try_callback((tcpip_callback_fn)netif_poll, netif);
|
||||
#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */
|
||||
|
||||
return ERR_OK;
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
#ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL
|
||||
#include "lwip/tcpip.h"
|
||||
#define PBUF_POOL_FREE_OOSEQ_QUEUE_CALL() do { \
|
||||
if (tcpip_callback_with_block(pbuf_free_ooseq_callback, NULL, 0) != ERR_OK) { \
|
||||
if (tcpip_try_callback(pbuf_free_ooseq_callback, NULL) != ERR_OK) { \
|
||||
SYS_ARCH_PROTECT(old_level); \
|
||||
pbuf_free_ooseq_pending = 0; \
|
||||
SYS_ARCH_UNPROTECT(old_level); \
|
||||
|
||||
Reference in New Issue
Block a user