void CDownloadGroups::Link(CDownload* pDownload) { CSingleLock pLock( &m_pSection, TRUE ); GetSuperGroup()->Add( pDownload ); for ( POSITION pos = GetIterator() ; pos ; ) { CDownloadGroup* pGroup = GetNext( pos ); pGroup->Link( pDownload ); } }
void CDownloadGroups::Link(CDownload* pDownload) { ASSUME_LOCK( Transfers.m_pSection ); CQuickLock pLock( m_pSection ); GetSuperGroup()->Add( pDownload ); for ( POSITION pos = GetIterator() ; pos ; ) { CDownloadGroup* pGroup = GetNext( pos ); pGroup->Link( pDownload ); } }