diff options
| author | Hennadii Stepanov <[email protected]> | 2020-09-19 12:06:36 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-09-19 18:02:42 +0300 |
| commit | 0bd1184adf6610c0bd14f4e9a25c0a200e65ae25 (patch) | |
| tree | 3755ff8cdd8f0202f64684d03511f1fc82fc7f22 /src/sync.h | |
| parent | Replace LockAssertion with a proper thread safety annotations (diff) | |
| download | discoin-0bd1184adf6610c0bd14f4e9a25c0a200e65ae25.tar.xz discoin-0bd1184adf6610c0bd14f4e9a25c0a200e65ae25.zip | |
Remove unused LockAssertion struct
Diffstat (limited to 'src/sync.h')
| -rw-r--r-- | src/sync.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/sync.h b/src/sync.h index 7b397a800..41f4e43bd 100644 --- a/src/sync.h +++ b/src/sync.h @@ -352,18 +352,4 @@ public: } }; -// Utility class for indicating to compiler thread analysis that a mutex is -// locked (when it couldn't be determined otherwise). -struct SCOPED_LOCKABLE LockAssertion -{ - template <typename Mutex> - explicit LockAssertion(Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex) - { -#ifdef DEBUG_LOCKORDER - AssertLockHeld(mutex); -#endif - } - ~LockAssertion() UNLOCK_FUNCTION() {} -}; - #endif // BITCOIN_SYNC_H |