]> git.sur5r.net Git - bacula/docs/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)
commitff43b33e302b4a2f7a0ee60158819fb6ba25bdc8
treea4764de1866445b32b45ad81c33744b8f24683b3
parentb8f27d9ff9f8f59a2760e6cc9f3b161a9ecc6d8f
- 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.