What device support and drivers are you using?
It is necessary to wait to do callbacks until iocInit is complete. This can be done by not doing callbacks until interruptAccept is 1.
The asynPortDriver base class takes care of this for you, by creating a thread that waits for interruptAccept and then doing all callbacks that the driver has requested.
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Zhang, Dehong [[email protected]]
Sent: Friday, February 22, 2013 4:00 PM
To: [email protected]
Subject: Race condition during IOC startup?
Hi,
I seem to have such a problem: when my IOC starts up, some of my records
want to callback almost immediately. Then my IOC crashes, because the "onceQ"
related stuff are not created yet -- is this possible?
Is it safe to move the "scanInit" call in iocBuild to just before "initDrvSup"
(EPICS base 3.14.12, src/misc/iocInit.c)?
Thank you for your advices! Best regards,
Dehong
- References:
- Race condition during IOC startup? Zhang, Dehong
- Navigate by Date:
- Prev:
Re: Race condition during IOC startup? Ralph Lange
- Next:
Re: Race condition during IOC startup? Michael Davidsaver
- 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
- Navigate by Thread:
- Prev:
Re: Race condition during IOC startup? Ralph Lange
- Next:
Re: Race condition during IOC startup? Michael Davidsaver
- 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
|