From 52c0b3e859089c0ac98e7261ded6391b4f8eeeaf Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 20 May 2022 15:17:00 +0200 Subject: refactor: Add thread safety annotation to `BanMan::SweepBanned()` --- src/banman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/banman.h') diff --git a/src/banman.h b/src/banman.h index b037b8869b..77b043f081 100644 --- a/src/banman.h +++ b/src/banman.h @@ -85,7 +85,7 @@ private: //!set the "dirty" flag for the banlist void SetBannedSetDirty(bool dirty = true); //!clean unused entries (if bantime has expired) - void SweepBanned(); + void SweepBanned() EXCLUSIVE_LOCKS_REQUIRED(m_cs_banned); RecursiveMutex m_cs_banned; banmap_t m_banned GUARDED_BY(m_cs_banned); -- cgit v1.2.3