[ECOS] A question about eCos thread exit

Jonathan Larmour jlarmour@redhat.com
Tue Mar 20 21:31:00 GMT 2001


windy wrote:
> 
> Hi, I am studying eCos's source code.
> What puzzled me is that I can't find the process of detaching the thread from memory
> after exit. The thread just enter into EXIT status and hold stack resource.
>  Need I write code for it myself?

I assume you mean detaching the thread from the scheduler, preventing you
from safely releasing the stack resource yourself. Do this with
cyg_thread_delete(). See
http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.9.html#pgfId=1088577

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Ecos-discuss mailing list