Example #1
0
void CDownloadQueueManager::CancelRequests(IDownloadQueueObserver *aObserver)
{
  CSingleLock lock(m_critical);
  // run through all our queues and remove all requests from this observer
  for (QUEUEPOOL::iterator it = m_queues.begin(); it != m_queues.end(); ++it)
  {
    CDownloadQueue* downloadQueue = *it;
    downloadQueue->CancelRequests(aObserver);
  }
}