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: Stack base in new threads on current CVS


=?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

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