Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: ca_create_channel memory management
From: pthomas@ligo-wa.caltech.edu
To: "Andrew Johnson" <anj@aps.anl.gov>
Cc: pthomas@ligo-wa.caltech.edu, tech-talk@aps.anl.gov
Date: Fri, 28 Jan 2011 10:47:00 -0800 (PST)
Do you mean to make certain that anything I set puser to is a valid
argument to free? And that it will be ok to set puser to 0, since free(0)
is a valid call?

> On Friday 28 January 2011 12:20:26 pthomas@ligo-wa.caltech.edu wrote:
>> I'm not sure what you mean by "never set puser to anything else other
>> than
>> zero."?
>
> Sorry, that was badly worded.  I just meant to say that you should only
> call
> your cleanup() routine for channels that have puser set to a value that is
> to
> be passed to free(), and that it is legal to call free(0).
>
> - 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:
ca_create_channel memory management pthomas
Re: ca_create_channel memory management Andrew Johnson
Re: ca_create_channel memory management pthomas
Re: ca_create_channel memory management Andrew Johnson

Navigate by Date:
Prev: Re: ca_create_channel memory management Andrew Johnson
Next: Setting BPTR Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: ca_create_channel memory management Andrew Johnson
Next: Re: ca_create_channel memory management Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·