2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 <2024> 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 <2024> 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: pC_->doCallbacksEnum() coming too early |
From: | "Johnson, Andrew N. via Core-talk" <core-talk at aps.anl.gov> |
To: | Torsten Bögershausen <tboegi at edom.se>, "core-talk at aps.anl.gov" <core-talk at aps.anl.gov> |
Date: | Tue, 27 Feb 2024 18:40:31 +0000 |
Hi Torsten, I assume this an Asyn port driver; what is triggering the I/O that results in your code doing that callback? The callback shouldn't happen until after the EPICS global
interruptAccept is non-zero, any earlier than that and the IOC and records won't be ready for device support to call it. The asynPortDriver code looks like
it ignores all such calls before then. If the code needs something to trigger that processing it could register an initHook and wait for the value
initHookAfterInterruptAccept, which is only sent once (i.e. it doesn't get repeated if the IOC is paused), or for
initHookAfterDatabaseRunning which is repeated after an IOC pause is rescinded. HTH, - Andrew -- Complexity comes for free, Simplicity you have to work for. |