]> git.sur5r.net Git - bacula/bacula/commit
- Make JCR a class and implement inc_use_count() and
authorKern Sibbald <kern@sibbald.com>
Thu, 26 May 2005 18:58:17 +0000 (18:58 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 26 May 2005 18:58:17 +0000 (18:58 +0000)
commitca4fb05c797d800d0bcf4bf04b77870df2dbcedb
treef22397d97ab647f00fd14a735138fa47f81c65e8
parent3130abc7b886dbb5dcdb2f20ea2d52bd0637c527
- Make JCR a class and implement inc_use_count() and
  dec_use_count() methods that ensure that the jcr is
  locked when inc/dec the use count.
- Remove the global jcr lock when traversing the jcr
  chain.
- Use dlist to implement the jcr chain rather than hand
  crafted next and prev links.
- Lock the jcr chain inside each function that modifies
  the chain.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2089 91ce42f0-d328-0410-95d8-f526ca767f89
17 files changed:
bacula/kernstodo
bacula/kes-1.37
bacula/src/dird/dird.c
bacula/src/dird/job.c
bacula/src/dird/jobq.c
bacula/src/dird/pythondir.c
bacula/src/dird/ua_cmds.c
bacula/src/dird/ua_status.c
bacula/src/filed/status.c
bacula/src/jcr.h
bacula/src/lib/dlist.h
bacula/src/lib/jcr.c
bacula/src/lib/watchdog.c
bacula/src/stored/askdir.c
bacula/src/stored/status.c
bacula/src/stored/stored.c
bacula/src/version.h