File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -304,4 +304,15 @@ class CSemaphoreGrant
304
304
}
305
305
};
306
306
307
+ // Utility class for indicating to compiler thread analysis that a mutex is
308
+ // locked (when it couldn't be determined otherwise).
309
+ struct SCOPED_LOCKABLE LockAnnotation
310
+ {
311
+ template <typename Mutex>
312
+ explicit LockAnnotation (Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex)
313
+ {
314
+ }
315
+ ~LockAnnotation () UNLOCK_FUNCTION() {}
316
+ };
317
+
307
318
#endif // BITCOIN_SYNC_H
Original file line number Diff line number Diff line change 54
54
#define ASSERT_EXCLUSIVE_LOCK (...)
55
55
#endif // __GNUC__
56
56
57
- // Utility class for indicating to compiler thread analysis that a mutex is
58
- // locked (when it couldn't be determined otherwise).
59
- struct SCOPED_LOCKABLE LockAnnotation
60
- {
61
- template <typename Mutex>
62
- explicit LockAnnotation (Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex)
63
- {
64
- }
65
- ~LockAnnotation () UNLOCK_FUNCTION() {}
66
- };
67
-
68
57
#endif // BITCOIN_THREADSAFETY_H
You can’t perform that action at this time.
0 commit comments