diff options
author | anon <anon [at] nowhere> | 2021-03-22 19:42:45 +0000 |
---|---|---|
committer | anon <anon [at] nowhere> | 2021-03-22 19:42:45 +0000 |
commit | 21ab1de89fb62e066185c1cc37ea89da73130b9c (patch) | |
tree | 0c84b9ee80fd728160166f110c230a7c2b931b96 /src/cryptonote_basic/connection_context.h | |
parent | cryptonote_protocol_handler: add race condition demo (diff) | |
download | monero-21ab1de89fb62e066185c1cc37ea89da73130b9c.tar.xz |
cryptonote_protocol_handler: fix race condition
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/connection_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h index a7d688300..ee26a0c07 100644 --- a/src/cryptonote_basic/connection_context.h +++ b/src/cryptonote_basic/connection_context.h @@ -77,6 +77,8 @@ namespace cryptonote int m_expect_response; uint64_t m_expect_height; size_t m_num_requested; + epee::copyable_atomic m_new_stripe_notification{0}; + epee::copyable_atomic m_idle_peer_notification{0}; }; inline std::string get_protocol_state_string(cryptonote_connection_context::state s) |