From: Kern Sibbald Date: Fri, 19 Feb 2010 13:08:40 +0000 (+0100) Subject: Add comments about lock priority X-Git-Tag: Release-5.2.1~1709 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b55afa058039237d3d39b642e9f9458b815b643;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.