Allocate a new node ID This is thread-safe and guaranteed to return unique IDs.
(&self)
| 744 | /// |
| 745 | /// This is thread-safe and guaranteed to return unique IDs. |
| 746 | pub fn alloc_node_id(&self) -> u64 { |
| 747 | self.next_node_id.fetch_add(1, Ordering::SeqCst) |
| 748 | } |
| 749 | |
| 750 | /// Get the current next node ID (for testing/debugging) |
| 751 | pub fn peek_next_node_id(&self) -> u64 { |
no outgoing calls