logo       

Re: netconn_delete and _recv not thread safe: msg#00023

network.lwip.general

Subject: Re: netconn_delete and _recv not thread safe

On Thu, 2006-12-14 at 20:59 +0000, Jonathan Larmour wrote:

> It may be possible to solve this if it is ok to assign mboxes:
> SYS_ARCH_PROTECT(old_level);
> tmp_mbox = conn->recvmbox;
> conn->recvmbox = SYS_MBOX_NULL;
> SYS_ARCH_UNPROTECT(old_level);
>
> Is assuming mboxes are assignable a valid approach? Any other thoughts?

That would be exactly what I'd try first. Should be easy to experiment
with at least.

Kieran


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise