This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A question about eCos thread exit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]