EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== 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

Replies:
Re: dbcar() and dbcaStats() locking Andrew Johnson

Navigate by Date:
Prev: Re: Failed assertion in base 3.15 Benjamin Franksen
Next: Re: dbcar() and dbcaStats() locking Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Failed assertion in base 3.15 Benjamin Franksen
Next: Re: dbcar() and dbcaStats() locking Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 08 Aug 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·