This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Bug in alarm handling fixed
- From: Christoph Csebits <christoph dot csebits at frequentis dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: ecos patches list <ecos-patches at sources dot redhat dot com>
- Date: Tue, 1 Oct 2002 09:51:04 +0200
- Subject: Re: Bug in alarm handling fixed
- References: <20020926081837.A26975@frequentis.com> <3D98FE6D.1020900@eCosCentric.com>
Hi,
Fix is ok.
On Tue, Oct 01, 2002 at 02:46:21AM +0100, Jonathan Larmour wrote:
> better way, with the assumption that the order for calling alarm functions
> registered for identical times is unspecified. I think that's reasonable,
> and I've documented it.
The order for calling alarm functions of identical alarm times
can be preserved (if its important at all) if you take
> - if( list_alarm->trigger > alarm->trigger )
instead of
> + if( list_alarm->trigger >= alarm->trigger )
christoph
--