aboutsummaryrefslogtreecommitdiff
path: root/src/banman.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-05-20 15:17:00 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-05-20 15:17:00 +0200
commit52c0b3e859089c0ac98e7261ded6391b4f8eeeaf (patch)
tree2664245599ecd69ad488665ef323113893279600 /src/banman.h
parent3919059deb60d6ead9defc9d213a3f0c2ab72e90 (diff)
downloadbitcoin-52c0b3e859089c0ac98e7261ded6391b4f8eeeaf.tar.xz
refactor: Add thread safety annotation to `BanMan::SweepBanned()`
Diffstat (limited to 'src/banman.h')
-rw-r--r--src/banman.h2
1 files changed, 1 insertions, 1 deletions
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);