This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Why to signal condvar with mutex held?
- From: Sergei Organov <osv at topconrd dot ru>
- To: sandeep <shimple0 at yahoo dot com>
- Cc: Nick Garnett <nickg at ecoscentric dot com>, ecos-discuss at sources dot redhat dot com
- Date: 15 Dec 2004 22:03:37 +0300
- Subject: Re: [ECOS] Why to signal condvar with mutex held?
- References: <20041215123341.53739.qmail@web52709.mail.yahoo.com>
sandeep <shimple0@yahoo.com> writes:
[...]
> > Why not? Wait morphing doesn't awake any threads so its behavior should
> surely, i don't understand waitmorphing business wrt broadcast then.
>
> > be the same on SMP. Wait morphing will put the threads into the mutex
> > queue in corresponding order no matter SMP or non-SMP system is in use.
> how does it get the original wait queue in priority order (you had
> mentioned something about that in your earlier mail, but that didn't
> clear the things). i guess, seeing your implementation patch would
> help me understand things better and may be not ask dumb questions to
> you. ;)
Well, I've just posted the patch to the ecos-patches mailing list.
Please refer here:
<http://ecos.sourceware.org/ml/ecos-patches/2004-12/msg00030.html>
--
Sergei.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss