| 195 | } |
| 196 | |
| 197 | void HTTPDownloader::WaitForAllRequests() |
| 198 | { |
| 199 | std::unique_lock<std::mutex> lock(m_pending_http_request_lock); |
| 200 | while (!m_pending_http_requests.empty()) |
| 201 | { |
| 202 | // Don't burn too much CPU. |
| 203 | Threading::Sleep(1); |
| 204 | LockedPollRequests(lock); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void HTTPDownloader::LockedAddRequest(Request* request) |
| 209 | { |
no test coverage detected