]> git.sur5r.net Git - bacula/bacula/commitdiff
Permits to use lock manager with file/line from outside
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 6 Apr 2010 19:41:31 +0000 (21:41 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:45 +0000 (16:49 +0200)
bacula/src/lib/lockmgr.h

index 008ba37da8546f02871e59358684d016309ce59b..64ccbd31fe542eb260bb8ac82daee38fc7cf16d9 100644 (file)
@@ -196,11 +196,13 @@ int lmgr_thread_create(pthread_t *thread,
 # define lmgr_do_unlock(m)
 # define lmgr_cleanup_main()
 # define bthread_mutex_set_priority(a,b)
-# define bthread_mutex_lock(a)          pthread_mutex_lock(a)
-# define bthread_mutex_unlock(a)        pthread_mutex_unlock(a)
-# define lmgr_cond_wait(a,b)            pthread_cond_wait(a,b)
-# define lmgr_cond_timedwait(a,b,c)     pthread_cond_timedwait(a,b,c)
-# define bthread_mutex_t                pthread_mutex_t
+# define bthread_mutex_lock(a)           pthread_mutex_lock(a)
+# define bthread_mutex_lock_p(a, f, l)   pthread_mutex_lock(a)
+# define bthread_mutex_unlock(a)         pthread_mutex_unlock(a)
+# define bthread_mutex_unlock_p(a, f, l) pthread_mutex_unlock(a)
+# define lmgr_cond_wait(a,b)             pthread_cond_wait(a,b)
+# define lmgr_cond_timedwait(a,b,c)      pthread_cond_timedwait(a,b,c)
+# define bthread_mutex_t                 pthread_mutex_t
 # define P(x) lmgr_p(&(x))
 # define V(x) lmgr_v(&(x))
 # define BTHREAD_MUTEX_PRIORITY(p)      PTHREAD_MUTEX_INITIALIZER