Hi Ben,
Thanks. In the end I decided I couldn't rely on the ordering being preserved in the channel access put_callback and monitor events. So I removed the SNL monitors for those variables and just used pvGet (with SYNC), which seems the more deterministic way of doing it. I ran a test overnight and didn't see a problem.
Cheers,
Matt
On Jan 23, 2014, at 6:11 AM, Benjamin Franksen <[email protected]> wrote:
> On Wednesday, January 22, 2014 16:01:49 Pearson, Matthew R. wrote:
>> Now I'm wondering how the callback reply can arrive at the client
>> before the monitor.
>
> I can't tell how this is possible, it seems strange, assuming that the
> database is always behaving in the way you see when enabling TPRO. Maybe
> some artefact of thread scheduling on the IOC (just guessing).
>
> Anyway I agree that using an event flag for the status pv is the
> reliable way to get this to work. An explicit get is also a valid
> solution (and yes, doing pvGet on a monitored variable is allowed and
> sometimes makes sense).
>
> Cheers
> Ben
> --
> "Make it so they have to reboot after every typo." ― Scott Adams
- References:
- SNL monitor and pvPutComplete Pearson, Matthew R.
- RE: SNL monitor and pvPutComplete Emmanuel Mayssat
- Re: SNL monitor and pvPutComplete Pearson, Matthew R.
- Re: SNL monitor and pvPutComplete Benjamin Franksen
- Navigate by Date:
- Prev:
mca Matlab. Problems on compilation Rafael Antonio Baron
- Next:
RE: SNL monitor and pvPutComplete Mooney, Tim M.
- 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: SNL monitor and pvPutComplete Benjamin Franksen
- Next:
RE: SNL monitor and pvPutComplete Mooney, Tim M.
- 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
|