diff options
Diffstat (limited to 'src/sync.h')
-rw-r--r-- | src/sync.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sync.h b/src/sync.h index 43473534db..bdbdde1a2a 100644 --- a/src/sync.h +++ b/src/sync.h @@ -306,16 +306,16 @@ public: // Utility class for indicating to compiler thread analysis that a mutex is // locked (when it couldn't be determined otherwise). -struct SCOPED_LOCKABLE LockAnnotation +struct SCOPED_LOCKABLE LockAssertion { template <typename Mutex> - explicit LockAnnotation(Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex) + explicit LockAssertion(Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex) { #ifdef DEBUG_LOCKORDER AssertLockHeld(mutex); #endif } - ~LockAnnotation() UNLOCK_FUNCTION() {} + ~LockAssertion() UNLOCK_FUNCTION() {} }; #endif // BITCOIN_SYNC_H |