public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problems with mboxt2 solved with mboxt
@ 2007-08-13 15:49 Pieter-Jan Busschaert
  0 siblings, 0 replies; only message in thread
From: Pieter-Jan Busschaert @ 2007-08-13 15:49 UTC (permalink / raw)
  To: ecos-discuss

Hello list,


I was having problems with synchronization on our board. After
enabling kernel instrumentation, I noticed I would sometimes see a
MBOXT_GOT message and sometimes not. Looking through the code of
mboxt.inl, I couldn't find what happened. Only when I discovered
mboxt2.inl, I understood. In mboxt2.inl an MBOXT_GOT message is only
given when the thread does not need to wait. In case it has to wait,
the mboxt2::get() returns after it's waken up (without checking the
count value, as mboxt::get() does).

So, I applied this patch :
http://ecos.sourceware.org/ml/ecos-patches/2006-09/msg00014.html and
now everything works. The main difference I see between the 2 is the
fact mboxt2 only uses 1 queue instead of 2 and only updates count
value if the queues are not empty / full. I suspect there must be an
error somewhere with the updating of that count value, but I couldn't
find it yet.

Has someone on this list further investigated this problem or is
nobody using mboxt2 anymore ?


Pieter-Jan Busschaert
Software Engineer
http://www.barco.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-13 15:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-13 15:49 [ECOS] Problems with mboxt2 solved with mboxt Pieter-Jan Busschaert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).