|
|
@ -54,15 +54,4 @@
|
|
|
|
#define ASSERT_EXCLUSIVE_LOCK(...)
|
|
|
|
#define ASSERT_EXCLUSIVE_LOCK(...)
|
|
|
|
#endif // __GNUC__
|
|
|
|
#endif // __GNUC__
|
|
|
|
|
|
|
|
|
|
|
|
// Utility class for indicating to compiler thread analysis that a mutex is
|
|
|
|
|
|
|
|
// locked (when it couldn't be determined otherwise).
|
|
|
|
|
|
|
|
struct SCOPED_LOCKABLE LockAnnotation
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
template <typename Mutex>
|
|
|
|
|
|
|
|
explicit LockAnnotation(Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
~LockAnnotation() UNLOCK_FUNCTION() {}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // BITCOIN_THREADSAFETY_H
|
|
|
|
#endif // BITCOIN_THREADSAFETY_H
|
|
|
|