| 599 | } |
| 600 | |
| 601 | void EngineWorker::registerImageResource() |
| 602 | { |
| 603 | if (_imageResource && !_cudaResource) { |
| 604 | _cudaResource = _simulationCudaFacade->registerImageResource(*_imageResource); |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | EngineWorkerGuard::EngineWorkerGuard(EngineWorker* worker, std::optional<std::chrono::milliseconds> const& maxDuration) |
| 609 | : _worker(worker) |