File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ mod self_contained_context {
17
17
const MAX_PREALLOC_SIZE : usize = 16 ; // measured at 208 bytes on Andrew's 64-bit system
18
18
19
19
/// A secp256k1 context object which can be allocated on the stack or in static storage.
20
+ #[ derive( Debug ) ]
20
21
pub struct SelfContainedContext (
21
22
[ MaybeUninit < AlignedType > ; MAX_PREALLOC_SIZE ] ,
22
23
Option < NonNull < ffi:: Context > > ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const MAX_SPINLOCK_ATTEMPTS: usize = 128;
23
23
// new stack-local context object if we are unable to obtain a lock on the
24
24
// global one. This is slow and loses the defense-in-depth "rerandomization"
25
25
// anti-sidechannel measure, but it is better than deadlocking..
26
+ #[ derive( Debug ) ]
26
27
pub struct SpinLock < T > {
27
28
flag : AtomicBool ,
28
29
// Invariant: if this is non-None, then the store is valid and can be
@@ -83,6 +84,7 @@ impl<T> SpinLock<T> {
83
84
}
84
85
85
86
/// Drops the lock when it goes out of scope.
87
+ #[ derive( Debug ) ]
86
88
pub struct SpinLockGuard < ' a , T > {
87
89
lock : & ' a SpinLock < T > ,
88
90
}
You can’t perform that action at this time.
0 commit comments