X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Flock-tracking.h;h=f2c9c44653ba47a1e36605b46e037b6bc87fc1bb;hp=702fdf83e90592a295e1d3655952258fa22959a6;hb=100444225380d3f5ca29424ea54703d308c7c651;hpb=d0b36a7cb734a9e3d290bb3047c012859ce171a3 diff --git a/ccan/tdb/test/lock-tracking.h b/ccan/tdb/test/lock-tracking.h index 702fdf83..f2c9c446 100644 --- a/ccan/tdb/test/lock-tracking.h +++ b/ccan/tdb/test/lock-tracking.h @@ -16,4 +16,10 @@ 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 */