[ECOS] Why to signal condvar with mutex held?

Andrew Lunn andrew@lunn.ch
Tue Dec 14 17:06:00 GMT 2004


On Tue, Dec 14, 2004 at 07:53:57PM +0300, Sergei Organov wrote:
> sandeep <shimple0@yahoo.com> writes:
> > > > what about keeping the waitlists sorted in decreasing priority order of
> > > > threads, when you go with idea of wait morphing? won't this ensure that
> > > > highest priority waiting thread gets the mutex?
> > > 
> > > As far as I know, priority (as opposed to FIFO) wait queues is a
> > > separate configuration option in eCos, so you can have them even now if
> > yup. there is CYGIMP_KERNEL_SCHED_SORTED_QUEUES in scheduler.cdl that
> > is disabled by default (not much varied configuration from default, i
> > have explored, as controlled by needs), but the description of that is
> > slightly off.
> 
> It's broken and I've already reported this, see:
> 
> <http://sources.redhat.com/ml/ecos-discuss/2004-11/msg00372.html>

How about submitting a patch which corrects this?

        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