Changed the pbuf_free/mem_free callback functions a little: created extra functions for that

This commit is contained in:
goldsimon
2008-03-28 07:56:47 +00:00
parent 43dd38df0a
commit 05587f5da9
4 changed files with 37 additions and 13 deletions

View File

@@ -166,8 +166,8 @@
* *** USE THIS WITH CARE: Setting this to 1 can disable interrupts for a long time! ***
*
* If you don't want that, call
* - tcpip_callback_nonblocking(pbuf_free_int, p);
* - tcpip_callback_nonblocking(mem_free, m);
* - pbuf_free_callback(p);
* - mem_free_callback(m);
*/
#ifndef LWIP_USE_HEAP_FROM_INTERRUPT
#define LWIP_USE_HEAP_FROM_INTERRUPT 0

View File

@@ -84,9 +84,9 @@ err_t tcpip_netifapi_lock(struct netifapi_msg *netifapimsg);
err_t tcpip_callback_with_block(void (*f)(void *ctx), void *ctx, u8_t block);
#define tcpip_callback(f, ctx) tcpip_callback_with_block(f, ctx, 1)
#define tcpip_callback_nonblocking(f, ctx) tcpip_callback_with_block(f, ctx, 0)
void pbuf_free_int(struct pbuf *p);
err_t pbuf_free_callback(struct pbuf *p);
err_t mem_free_callback(void *m);
err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg);
#define tcpip_untimeout(h, arg) tcpip_timeout(0xffffffff, h, arg)