MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DownloadToFileThread

Function DownloadToFileThread

engine/Poseidon/Network/NetworkMisc.cpp:256–262  ·  view source on GitHub ↗

Download to file

Source from the content-addressed store, hash-verified

254// Download to memory
255static DWORD WINAPI DownloadToMemThread(void* context)
256{
257 DownloadToMemContext* c = (DownloadToMemContext*)context;
258 c->result = DownloadFile(c->url, *c->size, c->proxy, c->maxSize);
259 c->done.store(true, std::memory_order_release);
260 c->event->Set();
261 return 0;
262}
263
264// Download to file
265static DWORD WINAPI DownloadToFileThread(void* context)

Callers 1

DownloadToFileOverlappedFunction · 0.85

Calls 2

DownloadFileFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected