X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Flock-tracking.h;h=f2c9c44653ba47a1e36605b46e037b6bc87fc1bb;hb=233e3055c46ba2ed8fea326ac40ea0545eb0444f;hp=702fdf83e90592a295e1d3655952258fa22959a6;hpb=d0b36a7cb734a9e3d290bb3047c012859ce171a3;p=ccan 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 */