[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] [EXTERNAL] Re: LWIP_NETCONN_FULLDUPLEX sys_mbox_free ex
Re: [lwip-users] [EXTERNAL] Re: LWIP_NETCONN_FULLDUPLEX sys_mbox_free example
Fri, 16 Feb 2018 15:47:53 +0000
I actually just implemented a new LWIP_NETCONN_THREAD_SEM_CHECK(sem) macro that
checks if the thread specific semaphore is valid. Basically, as a temporary
solution, I am keeping track of all the threads that created semaphores using
LWIP_NETCONN_THREAD_SEM_GET, and I compare against them using a global array of
the taskHandles and pvTaskGetThreadLocalStoragePointer. I only perform the
sys_sem_signal if it is valid.
Seems to work for now. Still need to do some in depth testing, but I am not
getting the halts or crashes.
From: lwip-users [mailto:address@hidden On Behalf Of Simon Goldschmidt
Sent: Friday, February 16, 2018 10:43 AM
Subject: Re: [lwip-users] [EXTERNAL] Re: LWIP_NETCONN_FULLDUPLEX sys_mbox_free
Kellar, Christopher wrote:
> Second, I am glad to hear that this is being reported. I was thinking that I
> was doing something odd.
Well, it wasn't actually being reported. That was me adding a bug to remember
to fix it before release...
I don't know how widely use full-duplex is.
> I am running lwIP and really am in need of full duplex mode. The
> reason for this is because on top of lwIP I am running a RabbitMq client
> which really requires a full duplex solution to have high bandwidth.
I'd doubt that. The STM32 only has a single core and you'd be better off using
the available processor cycles in a single thread (via select) than sharing it
between multiple threads.
I don't know RabbitMq can handle this, though.
> I am running a similar RabbitMq client in full duplex on CentOS.
> I will continue to investigate and try to find a solution. Do you think that
> a solution on your end is on the horizon?
Well, since there's no pressure behind this (and noone pays me for that
full-duplex thing), I really can't tell.
lwip-users mailing list
[CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this email is
proprietary to Medtronic and is intended for use only by the individual or
entity to which it is addressed, and may contain information that is private,
privileged, confidential or exempt from disclosure under applicable law. If you
are not the intended recipient or it appears that this mail has been forwarded
to you without proper authority, you are notified that any use or dissemination
of this information in any manner is strictly prohibited. In such cases, please
delete this mail from your records. To view this notice in other languages you
can either select the following link or manually copy and paste the link into
the address bar of a web browser: http://emaildisclaimer.medtronic.com