| 346 | } |
| 347 | |
| 348 | void EagerContext::StartStep() { |
| 349 | mutex_lock ml(metadata_mu_); |
| 350 | num_active_steps_++; |
| 351 | if (step_container_ == nullptr) { |
| 352 | step_container_.reset( |
| 353 | new ScopedStepContainer(0, [this](const string& name) { |
| 354 | for (Device* device : devices_) { |
| 355 | device->resource_manager()->Cleanup(name).IgnoreError(); |
| 356 | } |
| 357 | })); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | void EagerContext::EndStep() { |
| 362 | mutex_lock ml(metadata_mu_); |
no test coverage detected