src/stored/reserve.c
void init_reservations_lock()
{
   int errstat;
   if ((errstat=rwl_init(&reservation_lock)) != 0) {
      berrno be;
      Emsg1(M_ABORT, 0, _("Unable to initialize reservation lock. ERR=%s\n"),
            be.bstrerror(errstat));
   }

   init_vol_list_lock();
}
/*
 * This allows a given thread to recursively call lock_reservations.
 *   It must, of course, call unlock_... the same number of times.
 */
This allows a given thread to recursively call lock_reservations.
It must, of course, call unlock_... the same number of times.
This allows a given thread to recursively call lock_reservations . It must of course call unlock_ ... the same number of times .
void init_reservations_lock()
{
   int errstat;
   if ((errstat=rwl_init(&reservation_lock)) != 0) {
      berrno be;
      Emsg1(M_ABORT, 0, _("Unable to initialize reservation lock. ERR=%s\n"),
            be.bstrerror(errstat));
   }
   init_vol_list_lock();
}
void init_reservations_lock ( ) { int errstat ; if ( ( errstat = rwl_init ( & reservation_lock ) ) != 0 ) { berrno be ; Emsg1 ( M_ABORT , 0 , _ ( " \n " ) , be . bstrerror ( errstat ) ) ; } init_vol_list_lock ( ) ; }
This allows a given thread to recursively call lock_reservations.
This allows a given thread to recursively call lock_reservations .