Skip to content
fn

next_sequence_nr

→std::uint64_t
int next_sequence_nr()

Return the next globally-unique node sequence number and advance the shared counter.

Returns

std::uint64_t

A value strictly greater than any previously returned.

Notes

Thread-safe via relaxed atomic increment. Relaxed ordering is sufficient because the engine only requires that any two nodes' sequence numbers be distinct and totally ordered — not that the ordering match the global memory order across threads.