| 700 | } |
| 701 | } |
| 702 | |
| 703 | void RuntimeManager::enqueueLoadOperation(Valdi::DispatchFunction&& loadOperation) { |
| 704 | if (Valdi::isApplicationShuttingDown()) { |
| 705 | return; |
| 706 | } |
| 707 | updateLoadOperationsCount(1); |
| 708 | |
| 709 | _workerQueue->async([weakSelf = weakRef(this), loadOperation = std::move(loadOperation)]() { |
| 710 | if (auto strongThis = weakSelf.lock()) { |
| 711 | loadOperation(); |
| 712 | strongThis->updateLoadOperationsCount(-1); |
| 713 | } |
| 714 | }); |
| 715 | } |
| 716 | |
| 717 | void RuntimeManager::flushLoadOperations() { |
nothing calls this directly
no test coverage detected