[ECOS] cyg_create_thread question

Andrew Lunn andrew@lunn.ch
Fri Oct 29 10:14:00 GMT 2004


On Fri, Oct 29, 2004 at 06:00:19AM -0400, Stephan Bourduas wrote:
> This is more of a C/C++ question.  Can someone tell me
> exactly what "new((void *)thread)" thread does?  The code
> is taken from kapi.cxx.

The normal usage of new is that it allocated the memory for the object
on the heap. This usage you pass the memory for the object to new.

        Andrew


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list