From 9b55afa058039237d3d39b642e9f9458b815b643 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 19 Feb 2010 14:08:40 +0100 Subject: [PATCH] Add comments about lock priority --- bacula/src/lib/lockmgr.c | 5 ++++- bacula/src/lib/lockmgr.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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. -- 2.39.5