AW: [En-Nut-Discussion] Restart secific thread

Ernst Stippl ernst at stippl.org
Fri Nov 3 21:58:31 CET 2006


Hi!

Nut/OS docs say:

void NutThreadExit  (  void    )   
 
   End the current thread.
   Terminates the current thread, in due course the memory associated with
the thread will be released back to the OS this is done by the idle threa
   Todo:NutThreadKill() can be used instead of setting the priority level to
255.  

void NutThreadDestroy  (  void    )   
 
   Free a thread that was previously killed and release memory back to the
OS. 
   Called when another thread is killed and by the idle thread.
   Applications generally do not call this function, however you could call
it to try to reclaim memory. 
 

void NutThreadKill  (  void    )   
 
   Kill the running thread. 
   The thread is moved from the schedule que and
   Applications generally do not call this function. 
 
 

The idle thread calls "NutThreadDestroy", so this part (the cleanup)  is
taken care of. 
NutThreadExit ends up in calling NutTreadKill, but both of them do not
accept a Thread Handle to identify a thread to be killed. Its always the
active thread these functions act on.

regards
Ernst

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Petr Odlozil
Gesendet: Donnerstag, 02. November 2006 08:54
An: En-Nut-Discussion at egnite.de
Betreff: [En-Nut-Discussion] Restart secific thread

Hello,

Is there a way how to restart specific thread in NutOs ?

Best Regards

Petr Odlozil
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.24/514 - Release Date: 02.11.2006



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.21/509 - Release Date: 31.10.2006





More information about the En-Nut-Discussion mailing list