| 849 | } |
| 850 | |
| 851 | void StreamExecutor::DeallocateStream(Stream *stream) { |
| 852 | implementation_->DeallocateStream(stream); |
| 853 | CHECK_GE(live_stream_count_.fetch_sub(1), 0) |
| 854 | << "live stream count should not dip below zero"; |
| 855 | } |
| 856 | |
| 857 | bool StreamExecutor::CreateStreamDependency(Stream *dependent, Stream *other) { |
| 858 | return implementation_->CreateStreamDependency(dependent, other); |