Experimental Physics and Industrial Control System
|
What is the lifetime of your created thread? Does it live for the life of the IOC, or does it immediately exit when it has done its calculation?
In any case, you should be able to just create the event once at initialization. When the thread is created it needs a way to be passed the epicsEventId of
the event you previously created.
Mark
Hi
i want to learn how we can use epicsEvents in asynDriver.
In multi-threading in epics. I want to pass signal form scanning thread to other created thread.
I am not clear where i have to create epics event and where to destroy.
In my asynDriver i am creating epicsThread at initialisation then wait for signal (epicsEventWait) form scanning thread to calculate some value. I am signal to this thread with epicsEventSignal form asynInt32Write function.
In this case i have to create event (epicsEventCreate) at initialisation before creating thread or at scanning thread and destroy event after completion of created thread ( in this case every time event is created and destroy-> is it good for asynDriver development?)
. or create event at created thread and destroy after completion of calculation.
Thank you
Vishnu
Get your own
FREE website,
FREE domain &
FREE mobile app with Company email.
|
Know
More >
|
|
- References:
- epicsEvents Vishnu Patel
- Navigate by Date:
- Prev:
sequencer release 2.1.15 Benjamin Franksen
- Next:
AreaDetector: using attributes to set file number Emma Shepherd
- 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:
epicsEvents Vishnu Patel
- Next:
sequencer release 2.1.15 Benjamin Franksen
- 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
|
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|