lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] sys_mbox_new sys_sem_new : return NULL if no memory?


From: Piero 74
Subject: [lwip-devel] sys_mbox_new sys_sem_new : return NULL if no memory?
Date: Thu, 21 Feb 2008 17:43:15 +0100

Hi all.

I wrote in  my sys_arch.c functions sys_mbox_new sys_sem_new.
these functions return NULL if rtos has finished his memory heap.

LWIP code check everywhere if handle is null after new operation?
i'm not sure, but i saw in some points calls to other sys function without check of handle validity (different than NULL)

so... i have to verify in ALL function if handle parameter is NULL? and what have i do in this case?

i.e. call to sys_arch_sem_wait with invalid sem ???

Piero

reply via email to

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