File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,16 @@ class RRGraphBuilder {
401401 return node_storage_.count_rr_switches (arch_switch_inf, arch_switch_fanins);
402402 }
403403
404+ /* *
405+ * @brief Unlock storage; required to modify an routing resource graph after edge is read
406+ * @note This function is used by OpenFPGA and currently doesn't have any use in VPR code.
407+ */
408+ inline void unlock_storage () {
409+ node_storage_.edges_read_ = false ;
410+ node_storage_.partitioned_ = false ;
411+ node_storage_.clear_node_first_edge ();
412+ }
413+
404414 /* * @brief Reserve the lists of nodes, edges, switches etc. to be memory efficient.
405415 * This function is mainly used to reserve memory space inside RRGraph,
406416 * when adding a large number of nodes/edge/switches/segments,
You can’t perform that action at this time.
0 commit comments