]> git.sur5r.net Git - bacula/rescue/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)
commite5a185bbf37cf71102a873e37b2a82deb79c24dc
tree14d1bdce20f4b8d97e7cf5bdf01d62cf45efa97b
parent34845c5564be75353f2e9fa22dee34eb24030203
- 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.