EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: epicsEvent
From: Ben Franksen <[email protected]>
To: [email protected]
Date: Fri, 29 Oct 2010 00:59:16 +0200
On Freitag, 29. Oktober 2010, Ralph Lange wrote:
>   The RTEMS implementation does a "wake up one", consistent with the
> other implementations.
>
> Maybe the current set of OSI primitives is not sufficient?
>
> I definitely see Benjamin's point, and having a "wake up all" in
> addition to the current "wake up one", and/or making the "wake up
> one" configurable to select FIFO or priority behaviour could be
> useful.

This would be useful, but it was not my point :-)

I just need to know what I can expect from the interface. The wording in 
the docs was so that if I take it literally, I would have to make 
efforts to *avoid* more than one task waiting for the same event, 
because the behaviour in this case is completely unspecified. I doubt 
that this was the intention, and the answers so far seem to indicate 
that, indeed, an epicsEvent should behave as binary semaphore.

Regarding the choice of which task will get the semahore if more than 
one is waiting, I will for now assume that this is (intentionally) left 
unspecified. This means I will have to implement FIFO order on top of 
epicsEvent. The only other solution would be to extend the interface 
with another constructor and then implement FIFO order *inside* 
epicsEvent for those systems that do not support that natively (which 
is what you wrote above, so maybe you *did* get the point I was trying 
to make and I didn't get yours. Whatever ;-).

Cheers
Ben
-- 
"Never confuse what is natural with what is habitual."
                                   -- attributed to Mahatma Gandhi

Replies:
Re: epicsEvent Ralph Lange
References:
Re: epicsEvent Ralph Lange

Navigate by Date:
Prev: Re: epicsEvent Ralph Lange
Next: Re: epicsEvent Eric Norum
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: epicsEvent Ralph Lange
Next: Re: epicsEvent Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·