]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/rwlock.h
Use the command line utility dropdb instead of the psql command
[bacula/bacula] / bacula / src / lib / rwlock.h
index 6e2a5942389c4cd2250d17737990bc1ec08a309a..d310e1b3daec9f081ed34f5f5e911f43882e5be9 100644 (file)
@@ -11,7 +11,7 @@
  *
  */
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Copyright (C) 2000-2003 Kern Sibbald and John Walker
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -45,6 +45,12 @@ typedef struct s_rwlock_tag {
    int               w_wait;          /* writers waiting */
 } brwlock_t;
 
+typedef struct s_rwsteal_tag {
+   pthread_t         writer_id;       /* writer's thread id */
+   int               state;
+} brwsteal_t;
+
+
 #define RWLOCK_VALID  0xfacade
 
 #define RWL_INIIALIZER \