scripted-diff: Rename LockAnnotation to LockAssertion

-BEGIN VERIFY SCRIPT-
git grep -l LockAnnotation | xargs sed -i 's/LockAnnotation/LockAssertion/'
-END VERIFY SCRIPT-
This commit is contained in:
practicalswift
2019-05-16 15:10:38 +02:00
parent de9b5dbca3
commit 9f85e9cb3d
4 changed files with 22 additions and 22 deletions

View File

@@ -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