| 647 | } |
| 648 | |
| 649 | void FragmentInstanceState::ReleaseThreadToken() { |
| 650 | DCHECK(runtime_state_ != nullptr); |
| 651 | DCHECK(runtime_state_->resource_pool() != nullptr); |
| 652 | runtime_state_->resource_pool()->ReleaseThreadToken(true); |
| 653 | if (avg_thread_tokens_ != nullptr) { |
| 654 | PeriodicCounterUpdater::StopSamplingCounter(avg_thread_tokens_); |
| 655 | } |
| 656 | if (thread_usage_sampled_counter_ != nullptr) { |
| 657 | PeriodicCounterUpdater::StopTimeSeriesCounter(thread_usage_sampled_counter_); |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | Status FragmentInstanceState::WaitForOpen() { |
| 662 | return opened_promise_.Get(); |
nothing calls this directly
no test coverage detected