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: Proglem doing CA calls after catching a signal
From: Eric Norum <[email protected]>
To: Robert Soliday <[email protected]>
Cc: Chris Timossi <[email protected]>, tech-talk <[email protected]>
Date: Tue, 20 Jul 2004 15:42:52 -0500
Robert Soliday wrote:
Thanks, this solved my problem.

--Bob

Chris Timossi wrote:

Robert,
I believe that you should replace ca_task_initialize with

> ca_context_create(ca_enable_preemptive_callback) in main. Then in the > interrupt handler, you can call ca_current_context() to get the > current context and finally join that context with > ca_attach_context().



Are you sure that this is safe? I suspect that calling these functions from a signal handler is going to introduce all sorts of race conditions.


Jeff -- can you confirm/deny my suspicions?

--
Eric Norum                                 [email protected]
Advanced Photon Source                     Phone: (630) 252-4793
Argonne National Laboratory


Replies:
Re: Proglem doing CA calls after catching a signal Chris Timossi
References:
Proglem doing CA calls after catching a signal Robert Soliday
Re: Proglem doing CA calls after catching a signal Robert Soliday

Navigate by Date:
Prev: Re: Proglem doing CA calls after catching a signal Robert Soliday
Next: Re: Proglem doing CA calls after catching a signal Chris Timossi
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: Re: Proglem doing CA calls after catching a signal Robert Soliday
Next: Re: Proglem doing CA calls after catching a signal Chris Timossi
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 ·