| 5 | namespace engine::core { |
| 6 | |
| 7 | ExecutionContext::ExecutionContext(const BackendConfig & config) |
| 8 | : config_(config), |
| 9 | backend_(init_backend(config)) { |
| 10 | if (backend_ != nullptr && config_.threads > 0) { |
| 11 | set_backend_threads(backend_, config_.threads); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | ExecutionContext::~ExecutionContext() { |
| 16 | if (backend_ != nullptr) { |
nothing calls this directly
no test coverage detected