1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 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 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 <2017> 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: ca_search() and "preemptive callback" |
From: | "Mooney, Tim M." <[email protected]> |
To: | Michael Westfall <[email protected]>, "Johnson, Andrew N." <[email protected]> |
Cc: | "[email protected] Talk" <[email protected]> |
Date: | Thu, 5 Jan 2017 20:46:39 +0000 |
I don't know what's wrong, but there is a working example of ca_context_create(ca_enable_preemptive_callback) in autosave's
save_restore.c. It's done in a spawned thread, and not called from within SEVCHK(), but otherwise it looks just like your code.
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov) Advanced Photon Source, Argonne National Lab From: [email protected] [[email protected]] on behalf of Michael Westfall [[email protected]]
Sent: Thursday, January 05, 2017 1:11 PM To: Johnson, Andrew N. Cc: [email protected] Talk Subject: Re: ca_search() and "preemptive callback" It's in the main thread in a function that's called from the startup script after iocinit().
As far as I can tell, the purpose is to get channel IDs of some local database channels in order to get and put values to them.
I don't doubt that there is a different and better way to do this now-a-days... And maybe there was way back when this was originally implemented too. Who knows why things were done the way they were back in the primordial days..
On Thu, Jan 5, 2017 at 3:53 PM, Andrew Johnson
<[email protected]> wrote:
Hi Mike, -- Mike Westfall
Control Systems Software Engineer
|