示例#1
0
文件: Event.cpp 项目: adderly/DT3
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()));
	}
}
示例#2
0
文件: Plug.cpp 项目: UIKit0/DT3
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()));
	}
				
}