| 30 | } |
| 31 | |
| 32 | SC::Result SC::HttpClientOperationScheduler::close() |
| 33 | { |
| 34 | if (not initialized) |
| 35 | { |
| 36 | return Result(true); |
| 37 | } |
| 38 | |
| 39 | for (size_t idx = 0; idx < schedulerMemory.operations.sizeInElements(); ++idx) |
| 40 | { |
| 41 | if (schedulerMemory.operations[idx] != nullptr) |
| 42 | { |
| 43 | schedulerMemory.operations[idx]->setNotifier(nullptr); |
| 44 | } |
| 45 | schedulerMemory.readyOperations[idx] = 0; |
| 46 | } |
| 47 | initialized = false; |
| 48 | readyCV.broadcast(); |
| 49 | return Result(true); |
| 50 | } |
| 51 | |
| 52 | SC::size_t SC::HttpClientOperationScheduler::findOperationIndex(HttpClientOperation& operation) const |
| 53 | { |