Experimental Physics and Industrial Control System
I have an asyn port thread that generates SEVERAL I/O Interrupts.
Now the issue I have is that one of this interrupt update a waveform,
while another triggers the copy of the same waveform.
In code, the sequence is as follow:
1. interrupt to update waveform(compress)
2. interrupt to copy waveform
well, it seems that the copy of the waveform in (2) is the one
BEFORE the waveform is updated in (1)
Is this because the update of the waveform/compress is taking longer.
As a result, this record is not updated when (2) is executing?
It seems to be a race condition...
I guess a simple sleep could solve the problem, but just out of curiosity
is there a way to control processing of a record is completed before the waveform
copy is executedi/interrupt 2 is emitted?
--
Emmanuel
- Replies:
- RE: asyn interrupts... racing conditions?:w Mark Rivers
- Navigate by Date:
- Prev:
Re: [Fwd: Re: stream without asynPort] Eric Norum
- Next:
RE: asyn interrupts... racing conditions?:w Mark Rivers
- 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:
ITER CODAC Core System Vs 2.0 released Di Maio Franck
- Next:
RE: asyn interrupts... racing conditions?:w Mark Rivers
- 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