This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: A question about eCos thread exit
- To: windy <windy_yuan at 263 dot net>
- Subject: Re: [ECOS] A question about eCos thread exit
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 21 Mar 2001 05:31:09 +0000
- Cc: eCos discussion <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <200103210506.VAA02659@cygnus.com>
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