MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnFailure

Method OnFailure

src/network/core/http_shared.h:39–43  ·  view source on GitHub ↗

* Similar to HTTPCallback::OnFailure, but thread-safe. */

Source from the content-addressed store, hash-verified

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.

Callers 1

HandleQueueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected