pub fn unlock_port_if_locked_by(&mut self, port_name: &String, sub_id: &String) {
    if self.is_port_write_locked_by(port_name, sub_id) {
      // Should not panic since we are the one who locked it
      self.unlock_port(&port_name, sub_id).unwrap();
    }
  }
/// If port port_name is locked by sub_id, unlock it
If port port_name is locked by sub_id, unlock it
If port port_name is locked by sub_id unlock it
pub fn unlock_port_if_locked_by(&mut self, port_name: &String, sub_id: &String) {
    if self.is_port_write_locked_by(port_name, sub_id) {
      // Should not panic since we are the one who locked it
      self.unlock_port(&port_name, sub_id).unwrap();
    }
  }
pub fn unlock_port_if_locked_by ( & mut self , port_name : & String , sub_id : & String ) { if self . is_port_write_locked_by ( port_name , sub_id ) { // Should not panic since we are the one who locked it self . unlock_port ( & port_name , sub_id ) . unwrap ( ) ; } }
If port port_name is locked by sub_id, unlock it
If port port_name is locked by sub_id unlock it
&mut self
port_name
&String
sub_id
&String
&mut self
port_name
&String
sub_id
&String