[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Help with LwIP Modem
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Help with LwIP Modem |
Date: |
Fri, 8 Jul 2016 14:23:20 +0200 |
Sylvain Rochet wrote:
>> Is there actually a good reason to do so? What's the difference
>> between "tryPost" from ISR vs. from task?
>
> The main difference is that sending a message to a message box triggers
> an immediate context switch [..] if the receiving task have a
> higher priority than the sender task.
I know what's behind technically, with that question I'd rather meant what's
the big deal for an OS
to make this difference? It knows about which task is currently running and
which got runnable,
so it's not a big deal to know it's in interrupt context. From all the embedded
OSes I've used so far,
FreeRTOS is the only one to make this difference.
And in my view, passing the "fromISR" around up to portions of the code that
should be independent
of whether run from task or from ISR sometimes makes the code design worse.
Simon
- Re: [lwip-users] Help with LwIP Modem, (continued)
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernández, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernández, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Simon Goldschmidt, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Simon Goldschmidt, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem,
Simon Goldschmidt <=
- Re: [lwip-users] Help with LwIP Modem, Jeff Barlow, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, address@hidden, 2016/07/09
- Re: [lwip-users] Help with LwIP Modem, address@hidden, 2016/07/09
- Re: [lwip-users] Help with LwIP Modem, Jeff Barlow, 2016/07/09
- [lwip-users] FromISR port abstraction layer (was: Help with LwIP Modem), address@hidden, 2016/07/11
- Re: [lwip-users] FromISR port abstraction layer (was: Help with LwIP Modem), Freddie Chopin, 2016/07/11
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/13