]> git.sur5r.net Git - bacula/bacula/commit - bacula/src/dird/jobq.c
- 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)
commit351ae2d6549a46f28c595647b3f1c784d19f73fa
tree280682f6b33e0fb8211728bc692192d2b1a9d60f
parent247db2bf00e70d158f0c119d584fb8e272e46ce3
- 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