[ECOS] Stack base in new threads on current CVS
Nick Garnett
nickg@cygnus.co.uk
Fri Oct 6 05:15:00 GMT 2000
=?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
More information about the Ecos-discuss
mailing list