* Similar to HTTPCallback::OnFailure, but thread-safe. */
| 37 | * Similar to HTTPCallback::OnFailure, but thread-safe. |
| 38 | */ |
| 39 | void OnFailure() |
| 40 | { |
| 41 | std::lock_guard<std::mutex> lock(this->mutex); |
| 42 | this->queue.emplace_back(); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Similar to HTTPCallback::OnReceiveData, but thread-safe. |