6 #ifndef IROHA_UNIQUE_CREATION_PROPOSAL_STRATEGY_HPP 7 #define IROHA_UNIQUE_CREATION_PROPOSAL_STRATEGY_HPP 34 bool is_exists =
false;
35 requested_.
foreach ([&is_exists, &round](
auto ,
auto const &data) {
52 std::lock_guard<std::mutex> guard(mutex_);
53 return !contains(round);
57 std::lock_guard<std::mutex> guard(mutex_);
58 if (!contains(round)) {
59 requested_.
push([](
auto,
auto &) {}, [](
auto,
auto &) {}, round);
74 #endif // IROHA_UNIQUE_CREATION_PROPOSAL_STRATEGY_HPP Definition: unique_creation_proposal_strategy.hpp:22
UniqueCreationProposalStrategy()=default
Definition: block_query.hpp:15
void push(FuncOnAdd &&on_add, FuncOnRemove &&on_remove, Args &&... args)
Definition: ring_buffer.hpp:140
void foreach(Func &&f)
Definition: ring_buffer.hpp:156
void onCollaborationOutcome(RoundType, size_t) override
Definition: unique_creation_proposal_strategy.hpp:48
Definition: ordering_service_proposal_creation_strategy.hpp:19
boost::optional< RoundType > onProposalRequest(RoundType round) override
Definition: unique_creation_proposal_strategy.hpp:56
bool shouldCreateRound(RoundType round) override
Definition: unique_creation_proposal_strategy.hpp:51