X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Flock.c;h=647dd19dcf01f25f44b2e34c6ec072ebcdfc6efc;hb=1bf3065ec3bd9c1d65a14ee98b6e42bf7077ba16;hp=a52ff4e5e369ba9432362c3d28ad79ab96f95776;hpb=f1d2a09fc7f7629e0bf10fa9a01a9cbb18f0243a;p=bacula%2Fbacula diff --git a/bacula/src/stored/lock.c b/bacula/src/stored/lock.c index a52ff4e5e3..647dd19dcf 100644 --- a/bacula/src/stored/lock.c +++ b/bacula/src/stored/lock.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2007 Free Software Foundation Europe e.V. + Copyright (C) 2000-2008 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -88,13 +88,14 @@ const int dbglvl = 500; * DEVICE::dlock() does P(m_mutex) (in dev.h) * DEVICE::dunlock() does V(m_mutex) * - * DEVICE::r_dlock() does recursive locking + * DEVICE::r_dlock() allows locking the device when this thread + already has the device blocked. * dlock() * if blocked and not same thread that locked * pthread_cond_wait * leaves device locked * - * DEVICE::r_dunlock() + * DEVICE::r_dunlock() unlocks but does not unblock * same as dunlock(); * * DEVICE::dblock(why) does