One way that this is commonly done is to have your epicsAtExit handler
set a flag epicsExiting=true. Then at the top of your I/O functions
you just return immediately if epicsExiting==true.
Mark
________________________________________
From: [email protected] [[email protected]] on
behalf of Sergio Esquembri [[email protected]]
Sent: Thursday, May 28, 2015 8:39 AM
To: [email protected]
Subject: Problems with asyn read calls at driver exit
Hi,
I'm developing an EPICS driver using asynDriver and I'm having problems
with the finalization of the driver. The function that frees all the
resources allocated and closes the session with the hardware driver is
registered with epicsAtExit. The problem here is that some PVs have
timed scans and the driver is receiving calls to the registered read
methods after the ioc exit call.
What is the best way to avoid read calls when closing the driver?
Should I unregister manually my driver from the asyn interfaces?
Any help or hint about this will be appreciated.
Thanks,
Sergio.
--
-----------------------------