EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CA question
From: Till Straumann <[email protected]>
To: Benjamin Franksen <[email protected]>
Cc: [email protected]
Date: Fri, 13 Feb 2004 16:34:19 -0800
Hi Ben.

Benjamin Franksen wrote:
Hello,

I have a simple question regarding the CA client library: which is the guaranteed live span of the data ointed to by the void pointer argument received by a CA event handler routine?

Don't know if I understand you correctly - do you mean the 'dbr' field of the event_handler_args structure (which itself is passed by value)?

If you do, then after browsing the source for 2min, it seems to me that
what you get is a pointer to a message buffer which is very probably
volatile, i.e. it would surprise me if it would be safe to use it after
the callback returns.

These are just my 2 cents - someone with deeper knowledge might have
to correct me...

-- Till


More specifically: does this pointer change from call(-back) to call(-back) or does it always refer to the same memory location? (It could of course be anything in between).


The reason I ask is that (1) i'd like to know if there are any conditions under which it is safe to store the pointer for later access and (2) i couldn't find any hint on this in the CA reference manual.

Ben



References:
CA question Benjamin Franksen

Navigate by Date:
Prev: CA question Benjamin Franksen
Next: How is it that IOC process only 11000 records per second at AMD Duron 850MHz? Tatiana V. Salikova
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CA question Benjamin Franksen
Next: RE: CA question Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·