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 {
1717 const MAX_PREALLOC_SIZE : usize = 16 ; // measured at 208 bytes on Andrew's 64-bit system
1818
1919 /// A secp256k1 context object which can be allocated on the stack or in static storage.
20+ #[ derive( Debug ) ]
2021 pub struct SelfContainedContext (
2122 [ MaybeUninit < AlignedType > ; MAX_PREALLOC_SIZE ] ,
2223 Option < NonNull < ffi:: Context > > ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const MAX_SPINLOCK_ATTEMPTS: usize = 128;
2323// new stack-local context object if we are unable to obtain a lock on the
2424// global one. This is slow and loses the defense-in-depth "rerandomization"
2525// anti-sidechannel measure, but it is better than deadlocking..
26+ #[ derive( Debug ) ]
2627pub struct SpinLock < T > {
2728 flag : AtomicBool ,
2829 // Invariant: if this is non-None, then the store is valid and can be
@@ -83,6 +84,7 @@ impl<T> SpinLock<T> {
8384}
8485
8586/// Drops the lock when it goes out of scope.
87+ #[ derive( Debug ) ]
8688pub struct SpinLockGuard < ' a , T > {
8789 lock : & ' a SpinLock < T > ,
8890}
You can’t perform that action at this time.
0 commit comments