| 715 | }; |
| 716 | |
| 717 | inline void graph::register_node(graph_node *n) { |
| 718 | n->next = NULL; |
| 719 | { |
| 720 | spin_mutex::scoped_lock lock(nodelist_mutex); |
| 721 | n->prev = my_nodes_last; |
| 722 | if (my_nodes_last) my_nodes_last->next = n; |
| 723 | my_nodes_last = n; |
| 724 | if (!my_nodes) my_nodes = n; |
| 725 | } |
| 726 | } |
| 727 | |
| 728 | inline void graph::remove_node(graph_node *n) { |
| 729 | { |