OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
parsec/agent/runners/interface.cpp
Go to the documentation of this file.
1// Copyright (c) 2022 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#include "interface.hpp"
7
9 interface::interface(std::shared_ptr<logging::log> logger,
10 const cbdc::parsec::config& cfg,
12 parameter_type param,
13 bool is_readonly_run,
14 run_callback_type result_callback,
15 try_lock_callback_type try_lock_callback,
16 std::shared_ptr<secp256k1_context> secp,
17 std::shared_ptr<thread_pool> t_pool,
18 ticket_number_type ticket_number)
19 : m_log(std::move(logger)),
20 m_cfg(cfg),
21 m_function(std::move(function)),
22 m_param(std::move(param)),
23 m_is_readonly_run(is_readonly_run),
24 m_result_callback(std::move(result_callback)),
25 m_try_lock_callback(std::move(try_lock_callback)),
26 m_secp(std::move(secp)),
27 m_threads(std::move(t_pool)),
28 m_ticket_number(ticket_number) {}
29}
Buffer to store and retrieve byte data.
Definition buffer.hpp:15
std::function< void(run_return_type)> run_callback_type
Callback type for function execution.
std::function< bool(broker::key_type, broker::lock_type, broker::interface::try_lock_callback_type)> try_lock_callback_type
Callback function type for acquiring locks during function execution.
parsec::ticket_machine::ticket_number_type ticket_number_type
Type alias for a ticket number.
interface(std::shared_ptr< logging::log > logger, const cbdc::parsec::config &cfg, runtime_locking_shard::value_type function, parameter_type param, bool is_readonly_run, run_callback_type result_callback, try_lock_callback_type try_lock_callback, std::shared_ptr< secp256k1_context > secp, std::shared_ptr< thread_pool > t_pool, ticket_number_type ticket_number)
Constructor.
Configuration parameters for a phase two system.