| 258 | } |
| 259 | |
| 260 | void 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 | |
| 280 | void FileServerST::CancelRequest(const char* name, int from, int to) {} |
| 281 |
no test coverage detected