lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Threading Question using LWIP with TM4C1294NCPDT


From: Jan Menzel
Subject: Re: [lwip-users] Threading Question using LWIP with TM4C1294NCPDT
Date: Fri, 26 Oct 2018 18:03:01 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 26.10.2018 15:57, vr roriz wrote:
>> Vitor, make sure your processes are never cycled by the scheduler
> otherwise you'll violate the threading requirements. I'd suggest to just
> have a single thread for lwip and use a mailbox or similar to trigger
> certain actions. The OS will take care that you can write into the
> mailbox from any interrupt/thread/timer.
> 
> Hi Jan, I do have a "mailbox", I am using a message-passing OS. All my
> interrupts just send messages to processes that execute lwIP code, all
> these processes have the same priority. What do you exactly mean by "
> never cycle"? The scheduling algo is priority level based, without
> time-slices.

Just make sure your scheduler never interrupts one process in favour for
an other with same priority. I would consider this non standard.
Alternatively you could have one lock shared between all your processes
to force the scheduler to never interrupt any lwip function to execute
any other.

        Jan



reply via email to

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