lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Re: multi-threaded environment


From: tbutler
Subject: Re: [lwip-users] Re: multi-threaded environment
Date: Mon, 29 Mar 2004 08:19:53 +0200





>>I've run into this problem using PPP with a modem. In
>>response to pppSigHUP(), the logic in ppp.c terminates
>>the serial input thread without any cleanup whatsoever.
>>So I created the funcion sys_thread_free() as the
>>counterpart to sys_thread_new() in sys_arch, and added
>>the corresponding call in ppp.c before the input thread falls
>>out the bottom.
>>
>>
>Do you think your sys_thread_free() still works if used to interrupt a
>thread that owns open connections, the network remaining up, and other
>treads wanting their active connections untouched?
>

In my case, there is no interrupting of a thread with resources that are
shared with other tasks, nor are there tasks synchronized to the
terminating task. To state it more accurately, my sys_thread_free()
guarantees that the _thread_ resources allocated in sys_thread_new() are
reclaimed. The scenario in which it is called is an orderly shutdown of the
terminating task.

>All the best
>Peter





reply via email to

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