Atomic bool for flags
This commit is contained in:
parent
5e75e8043a
commit
fba1c0cb95
1 changed files with 5 additions and 5 deletions
|
|
@ -559,14 +559,14 @@ namespace graphene { namespace net { namespace detail {
|
|||
|
||||
peer_database _potential_peer_db;
|
||||
fc::promise<void>::ptr _retrigger_connect_loop_promise;
|
||||
bool _potential_peer_database_updated;
|
||||
std::atomic_bool _potential_peer_database_updated;
|
||||
fc::future<void> _p2p_network_connect_loop_done;
|
||||
// @}
|
||||
|
||||
/// used by the task that fetches sync items during synchronization
|
||||
// @{
|
||||
fc::promise<void>::ptr _retrigger_fetch_sync_items_loop_promise;
|
||||
bool _sync_items_to_fetch_updated;
|
||||
std::atomic_bool _sync_items_to_fetch_updated;
|
||||
fc::future<void> _fetch_sync_items_loop_done;
|
||||
|
||||
typedef std::unordered_map<graphene::net::block_id_type, fc::time_point> active_sync_requests_map;
|
||||
|
|
@ -577,12 +577,12 @@ namespace graphene { namespace net { namespace detail {
|
|||
// @}
|
||||
|
||||
fc::future<void> _process_backlog_of_sync_blocks_done;
|
||||
bool _suspend_fetching_sync_blocks;
|
||||
std::atomic_bool _suspend_fetching_sync_blocks;
|
||||
|
||||
/// used by the task that fetches items during normal operation
|
||||
// @{
|
||||
fc::promise<void>::ptr _retrigger_fetch_item_loop_promise;
|
||||
bool _items_to_fetch_updated;
|
||||
std::atomic_bool _items_to_fetch_updated;
|
||||
fc::future<void> _fetch_item_loop_done;
|
||||
|
||||
struct item_id_index{};
|
||||
|
|
|
|||
Loading…
Reference in a new issue