mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd:Ⓜ️:vm: Add additional identifications to eval instance.
This commit is contained in:
parent
820284f2d0
commit
989441677f
2 changed files with 15 additions and 1 deletions
|
@ -52,10 +52,14 @@ struct ircd::m::vm::init
|
|||
struct ircd::m::vm::eval
|
||||
:instance_list<eval>
|
||||
{
|
||||
static uint64_t id_ctr; // monotonic
|
||||
|
||||
const vm::opts *opts {&default_opts};
|
||||
const vm::copts *copts {nullptr};
|
||||
db::txn *txn {nullptr};
|
||||
ctx::ctx *ctx {ctx::current};
|
||||
uint64_t id {++id_ctr};
|
||||
uint64_t sequence {0};
|
||||
db::txn *txn {nullptr};
|
||||
event::id::buf event_id;
|
||||
|
||||
operator const event::id::buf &() const;
|
||||
|
@ -72,6 +76,7 @@ struct ircd::m::vm::eval
|
|||
eval() = default;
|
||||
eval(eval &&) = delete;
|
||||
eval(const eval &) = delete;
|
||||
~eval() noexcept;
|
||||
|
||||
friend string_view reflect(const fault &);
|
||||
};
|
||||
|
|
|
@ -106,6 +106,10 @@ decltype(ircd::util::instance_list<ircd::m::vm::eval>::list)
|
|||
ircd::util::instance_list<ircd::m::vm::eval>::list
|
||||
{};
|
||||
|
||||
decltype(ircd::m::vm::eval::id_ctr)
|
||||
ircd::m::vm::eval::id_ctr
|
||||
{};
|
||||
|
||||
//
|
||||
// eval::eval
|
||||
//
|
||||
|
@ -144,6 +148,11 @@ ircd::m::vm::eval::eval(const vm::opts &opts)
|
|||
{
|
||||
}
|
||||
|
||||
ircd::m::vm::eval::~eval()
|
||||
noexcept
|
||||
{
|
||||
}
|
||||
|
||||
ircd::m::vm::eval::operator
|
||||
const event::id::buf &()
|
||||
const
|
||||
|
|
Loading…
Reference in a new issue