| 614 | std::thread::id thread_id = std::this_thread::get_id(); |
| 615 | |
| 616 | NodeId create_root_node() { |
| 617 | const NodeId prev_node_id = this->current_node_id; |
| 618 | this->current_node_id = NodeId::root; // advance to a new node |
| 619 | |
| 620 | this->mat.grow_nodes(); |
| 621 | this->mat.prev_id(this->current_node_id) = prev_node_id; |
| 622 | // link new node backwards, since this is a root the prev. one is empty and doesn't need to link forwards |
| 623 | |
| 624 | return this->current_node_id; |
| 625 | } |
| 626 | |
| 627 | NodeId create_node(CallsiteId callsite_id) { |
| 628 | const NodeId prev_node_id = this->current_node_id; |
no test coverage detected