This is the mail archive of the ecos-discuss@sourceware.org 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]

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


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