2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | dbcar() and dbcaStats() locking |
From: | Ralph Lange <[email protected]> |
To: | EPICS Core-Talk <[email protected]> |
Date: | Fri, 08 Aug 2014 17:19:58 +0200 |
I was looking at db/dbCaTest.c today, and I found that dbcar() is looping through all record instances of all types, and taking dbLockSetGblLock() when investigating a CA link. dbcaStats() is looping through all record instances of all types, and NOT taking dbLockSetGblLock() when investigating a CA link. Why? Why not? dbcar() is doing more CA investigation, and using the formatter in-between. But other than that, dbcaStats() could also encounter another thread changing the link type from CA to DB or CONSTANT. Can anyone explain why these similar cases are handled differently? Thanks a lot! Clueless, ~Ralph |