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: "Jeff Hill" <[email protected]>
To: "'Ben Franksen'" <[email protected]>, <[email protected]>
Date: Mon, 1 Nov 2010 09:02:41 -0600
> Oops. I have not looked close enough. The C and C++ interfaces differ in
> the return value. The C++ methods really return bool, whereas the C
> routines return the epicsEventWaitStatus. Am I the only one who finds
> this confusing? 

It hasn’t been an issue for me

> What happens if the C++ method encounters an error?

It throw an exception. It is very typical for C++, and 
Java, interfaces to throw an exception when there is an 
error

Jeff
______________________________________________________
Jeffrey O. Hill           Email        [email protected]
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

Message content: TSPA

With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925


> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Ben Franksen
> Sent: Friday, October 29, 2010 7:49 PM
> To: [email protected]
> Subject: Re: epicsEvent semantics
> 
> On Samstag, 30. Oktober 2010, Ben Franksen wrote:
> > On Freitag, 29. Oktober 2010, Andrew Johnson wrote:
> > > On Friday 29 October 2010 14:15:54 Ralph Lange wrote:
> > > >   On 29.10.2010 15:10, Eric Norum wrote:
> > > > > +dded to epicsEventTest and the application developers guide
> > > > > has been updated +to describe this requirement.</p>
> > > >
> > > > Did you actually update the guide? At least I don't see it on
> > > > launchpad yet...
> > >
> > > Working on it, I have some uncommitted formatting changes that I
> > > want to keep separate that I'm also dealing with.
> >
> > While you're at it, please fix the description for wait and tryWait,
> > they are most probably wrong. What is returned is an
> > epicsEventWaitStatus, not boolean. When interpreted as boolean the
> > return value is zero (false) if the event *did* happen
> > (epicsEventWaitOK) and non-zero (true) if it did not happen
> > (epicsEventWaitTimeout) or if an error happened
> > (epicsEventWaitError). At least this is what the names suggest.
> 
> Oops. I have not looked close enough. The C and C++ interfaces differ in
> the return value. 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?
> 
> Cheers
> ben



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

Navigate by Date:
Prev: Re: epicsEvent semantics Andrew Johnson
Next: StandardString should be a template? 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 Andrew Johnson
Next: Re: epicsEvent semantics J. Lewis Muir
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 ·