| 222 | } |
| 223 | |
| 224 | int FileServerST::RequestPresentAndDone(const FileRequest& req) const |
| 225 | { |
| 226 | for (int i = 0; i < _done.Size(); i++) |
| 227 | { |
| 228 | if (_done[i].Contains(req)) |
| 229 | { |
| 230 | return i; |
| 231 | } |
| 232 | } |
| 233 | return -1; |
| 234 | } |
| 235 | int FileServerST::RequestPresentAndNotDone(const FileRequest& req) const |
| 236 | { |
| 237 | for (int i = 0; i < _queue.Size(); i++) |