]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/lock-tracking.h
strsplit: remove nump argument
[ccan] / ccan / tdb / test / lock-tracking.h
index 9afdd0978e475200642f8e665d8450213c31fc28..f2c9c44653ba47a1e36605b46e037b6bc87fc1bb 100644 (file)
@@ -1,5 +1,7 @@
 #ifndef LOCK_TRACKING_H
 #define LOCK_TRACKING_H
 #ifndef LOCK_TRACKING_H
 #define LOCK_TRACKING_H
+#include <stdbool.h>
+
 /* Set this if you want a callback after fnctl unlock. */
 extern void (*unlock_callback)(int fd);
 
 /* Set this if you want a callback after fnctl unlock. */
 extern void (*unlock_callback)(int fd);
 
@@ -11,4 +13,13 @@ unsigned int forget_locking(void);
 
 /* Number of errors in locking. */
 extern int locking_errors;
 
 /* Number of errors in locking. */
 extern int locking_errors;
+
+/* Suppress lock checking. */
+extern bool suppress_lockcheck;
+
+/* Make all locks non-blocking. */
+extern bool nonblocking_locks;
+
+/* Number of times we failed a lock because we made it non-blocking. */
+extern int locking_would_block;
 #endif /* LOCK_TRACKING_H */
 #endif /* LOCK_TRACKING_H */