6#ifndef NO_MULTITHREADING
15BBApiRequest global_request;
16#ifndef NO_MULTITHREADING
18std::mutex request_mutex;
30#ifndef NO_MULTITHREADING
33 if (!lock.owns_lock()) {
34 throw_or_abort(
"BB API is meant for single-threaded (queued) use only");
Shared type definitions for the Barretenberg RPC API.
A wrapper around std::variant that provides msgpack serialization based on type names.
#define CBIND_NOSCHEMA(cname, func)
CommandResponse execute(BBApiRequest &request, Command &&command)
Executes a command by visiting a variant of all possible commands.
CommandResponse bbapi(Command &&command)
Main API function that processes commands and returns responses.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
void throw_or_abort(std::string const &err)