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
<2010>
2011
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
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|