| 453 | |
| 454 | |
| 455 | void CHTTPDownloadThread::StopAll() |
| 456 | { |
| 457 | ThreadSet snapshot; |
| 458 | { |
| 459 | wxMutexLocker lock(s_allThreadsMutex); |
| 460 | snapshot = s_allThreads; |
| 461 | } |
| 462 | for (ThreadSet::iterator it = snapshot.begin(); it != snapshot.end(); ++it) { |
| 463 | (*it)->Stop(); |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | |
| 468 | CHTTPDownloadThread::ThreadSet CHTTPDownloadThread::s_allThreads; |