void Event::remove_outgoing_connections (void) { if (_connection_index == 0) return; std::vector<Event*> &outgoing_ref = connections()._outgoing; while (outgoing_ref.begin() != outgoing_ref.end()) { remove_outgoing_connection(*(outgoing_ref.begin())); } }
void PlugBase::remove_outgoing_connections (void) { PROFILER(SCRIPTING); if (_connection_index == 0) return; std::unique_lock<std::recursive_mutex> lock(owner()->lock()); std::vector<PlugBase*> &outgoing_ref = connections()._outgoing; while (outgoing_ref.begin() != outgoing_ref.end()) { remove_outgoing_connection(*(outgoing_ref.begin())); } }