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

Method Request

engine/Poseidon/IO/FileServer.cpp:260–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void FileServerST::Request(const char* name, float time, int from, int to)
261{
262#if ENABLE_OVERLAPPED_IO
263 if (_cache.IsLoaded(name))
264 {
265 Update();
266 return;
267 }
268 // check if given request is already queued
269 DWORD itime = GlobalTickCount() + toInt(1000 * time);
270 FileRequest request(name, itime, from, to);
271 // check
272 if (!RequestPresent(request))
273 {
274 _queue.HeapInsert(request);
275 }
276 Update();
277#endif
278}
279
280void FileServerST::CancelRequest(const char* name, int from, int to) {}
281

Callers 4

SerializeBinMethod · 0.45
LoadOptimizedMethod · 0.45
PreInitMethod · 0.45
PreInitMethod · 0.45

Calls 4

GlobalTickCountFunction · 0.85
HeapInsertMethod · 0.80
toIntFunction · 0.50
IsLoadedMethod · 0.45

Tested by

no test coverage detected