[Top][All Lists]

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

[lwip-devel] [task #7490] Add return value to sys_mbox_post

From: Frédéric Bernon
Subject: [lwip-devel] [task #7490] Add return value to sys_mbox_post
Date: Sun, 06 Jan 2008 19:40:30 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv: Gecko/20071127 Firefox/

Update of task #7490 (project lwip):

        Percent Complete:                     40% => 50%                    


Follow-up Comment #28:

(from private emails)

Frédéric BERNON wrote:
> I'm not sure to understand why you set conn::pcb.tcp to NULL before each 
> call to netconn_free. Why don't you set it inside netconn_free ?

Simon answers:
My idea was to make sure that the pcb is deleted outside the 
netconn_free function (since it is called from API thread also). Because 
of that, I included the assert for pcb==NULL to make sure future 
developers think of freeing the pdb before calling netconn_free (the 
name doesn't really tell that the pcb is not freed). Of course it is not 
really needed now, but I think it helps to avoid errors in the future.


Reply to this item at:


  Message posté via/par Savannah

reply via email to

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