This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Mbox Class Inlines
- From: David Schollmeyer <dschollmeyer at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 4 Mar 2009 10:53:40 -0700
- Subject: [ECOS] Mbox Class Inlines
I have a question on the usage of the Mbox class. If I just include
<cyg/kernel/mbox.hxx>, I get a compile error that the inline function
Cyg_ThreadQueue::empty() is used but not defined. It appears that
thread.inl is not included. If I look in mbox.hxx, it includes either
mboxt.hxx or mboxt2.hxx to implement the queue depending on the value
of CYGIMP_MBOX_USE_MBOXT_PLAIN. Both of these files say to include
mboxt.inl or mboxt2.inl along with the .hxx file and these .inl files
correctly include thread.inl. If I add an include of
<cyg/kernel/mboxt.inl> in my code everything compiles correctly, but
shouldn't this be done in mbox.hxx due to the MBOXT configuration
option?
David Schollmeyer
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss