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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | StreamDevice device locking |
From: | Joao Afonso via Tech-talk <[email protected]> |
To: | "[email protected]" <[email protected]> |
Cc: | Stephen Page <[email protected]> |
Date: | Fri, 8 Feb 2019 13:24:57 +0000 |
Hello,
At the moment I am experimenting with StreamDevice, while connecting it to a custom asynPortDriver (instantiated with ASYN_MULTIDEVICE, ASYN_CANBLOCK).
According to the documentation, each protocol command blocks the device for the duration of the protocol, which makes sense.
But an access to two devices on two different addresses should be possible:
However, I noticed that if I process two records with stream device, for addresses #1 and #2, it first runs all callbacks for address #1, and only after to #2.
This is contrary to my expectation, which would be to see callbacks to both devices being executed interleaved.
Is there a way to tell StreamDevice to block only on the address level, allowing to different addresses to be processes simultaneously?
Thanks,
Joao Afonso
CERN TE-EPC-CCS
|