diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2019-05-16 15:10:38 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2019-05-17 13:29:04 +0200 |
commit | 9f85e9cb3d687862128ddf464d2bc2462b8627f0 (patch) | |
tree | e4241f1ab16a72f154ebe2a6945ad12265ec803c /src/sync.h | |
parent | de9b5dbca34230b8213ce612036fccabdb6ee53b (diff) |
scripted-diff: Rename LockAnnotation to LockAssertion
-BEGIN VERIFY SCRIPT-
git grep -l LockAnnotation | xargs sed -i 's/LockAnnotation/LockAssertion/'
-END VERIFY SCRIPT-
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 |