lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Call tcp_close() out of tcp_recv()-context?


From: Sergio R. Caprile
Subject: Re: [lwip-users] Call tcp_close() out of tcp_recv()-context?
Date: Mon, 7 Sep 2015 09:17:57 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

It depends on what you mean by "context".
If you don't have any kind of OS running, you have one thread and
interrupt handlers, you can safely call lwIP RAW API functions from your
main thread. It is not safe to also call from interrupts. If your
application depends on interrupts, just set a flag or equivalent and let
the main thread react to that.
If you have an OS, you have to keep everything on one thread or use
another API.

-- 




reply via email to

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