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 semantics
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Mon, 1 Nov 2010 09:50:44 -0500
On Friday 29 October 2010 20:48:45 Ben Franksen wrote:
>
> The C++ methods really return bool, whereas the C
> routines return the epicsEventWaitStatus. Am I the only one who finds
> this confusing? What happens if the C++ method encounters an error?

It throws an exception object such as epicsEvent::invalidSemaphore, exceptions 
being the standard way for C++ APIs to indicate an abnormal condition.

- Andrew
-- 
If a man is offered a fact which goes against his instincts, he will
scrutinize it closely, and unless the evidence is overwhelming, he will
refuse to believe it.  If, on the other hand, he is offered something
which affords a reason for acting in accordance to his instincts, he
will accept it even on the slightest evidence.  -- Bertrand Russell


References:
epicsEvent semantics Eric Norum
Re: epicsEvent semantics Ben Franksen
Re: epicsEvent semantics Ben Franksen

Navigate by Date:
Prev: Re: epicsEvent semantics Ben Franksen
Next: RE: epicsEvent semantics Jeff Hill
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 semantics Ben Franksen
Next: RE: epicsEvent semantics Jeff Hill
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 ·