EPICS Home

Experimental Physics and Industrial Control System


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

Subject: Re: pend_io
From: Steve Hunt <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: [email protected]
Date: Wed, 27 Jun 2012 07:51:33 +0200
I agree, no bug in the example - but why not add the call to close the
context to show best practice in the general case, even if you don't
show a put example?

I also agree with Jeff, doc could be improved - as I read it, it gave me
the strong impression that "flush" meant flush! - perhaps others will
make the same error of not reading the "fine print".

Cheers
Steve

On Tue, 2012-06-26 at 12:42 -0500, Andrew Johnson wrote:
> Hi Steve,
> 
> On 2012-06-26 steve hunt wrote:
> > perhaps the next release could have the caclient makebase app
> > following this advice?
> 
> The code in the caClient template works just fine.  It calls ca_get(), so the 
> subsequent ca_pend_io() won't return until the value has been received (or it 
> times out, causing the SEVCHK() to fail).  You were the one who changed the 
> ca_get() call into ca_put(), which has different semantics as Jeff has 
> explained.  Now I agree that adding an example which uses ca_put() might be a 
> good idea, but that's a different issue and doesn't represent a bug in the 
> current example code.
> 
> - Andrew



Replies:
Re: pend_io Andrew Johnson
References:
RE: pend_io Hill, Jeff
Re: pend_io steve hunt
Re: pend_io Andrew Johnson

Navigate by Date:
Prev: RE: pend_io Steve Hunt
Next: Re: pend_io Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: pend_io Andrew Johnson
Next: Re: pend_io Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024