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] |
Other format: | [Raw text] |
On October 29, 2004 06:06 am, Andrew Lunn wrote:
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
Ahh... I see. Simple. Don't know why I wasn't finding anything with Google.
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |