From: Kern Sibbald Date: Fri, 19 Feb 2010 13:08:40 +0000 (+0100) Subject: Add comments about lock priority X-Git-Tag: Release-7.0.0~2174 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bcbaeadfcd37dcd6753bae8939557fd1c7d628cf;p=bacula%2Fbacula Add comments about lock priority --- diff --git a/bacula/src/lib/lockmgr.c b/bacula/src/lib/lockmgr.c index 97e99889ef..bbbce8e34a 100644 --- a/bacula/src/lib/lockmgr.c +++ b/bacula/src/lib/lockmgr.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2008-2009 Free Software Foundation Europe e.V. + Copyright (C) 2008-2010 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. @@ -30,6 +30,9 @@ How to use mutex with bad order usage detection ------------------------------------------------ + Note: see file mutex_list.h for current mutexes with + defined priorities. + Instead of using: pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; P(mutex); diff --git a/bacula/src/lib/lockmgr.h b/bacula/src/lib/lockmgr.h index 405b51ede1..008ba37da8 100644 --- a/bacula/src/lib/lockmgr.h +++ b/bacula/src/lib/lockmgr.h @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2008-2008 Free Software Foundation Europe e.V. + Copyright (C) 2008-2010 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.