This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Stack base in new threads on current CVS
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] Stack base in new threads on current CVS
- From: Nick Garnett <nickg at cygnus dot co dot uk>
- Date: 05 Oct 2000 18:02:30 +0100
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Red Hat UK
- References: <004701c02c9e$17134e50$be5635c3@sidsa.es>
=?iso-8859-1?B?SnVhbmNobyBBbmRy6XMgU+Fleg==?= <juancho@sidsa.es> writes:
> Hi,
> I'm creating many threads and I got in trouble while managing their stacks.
> I would like to know if there is implemented any alloc method for the
> stack, when calling to 'cyg_thread_create'.
> I am working with 'current' CVS version.
> ¿Should I manage the thread's stacks with dinamic memory?
>
cyg_thread_create() does not currently allocate stacks automatically,
however there is no reason why you should not allocate them using
malloc(). Of course you are then responsible for freeing them again.
--
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK