Project import generated by Copybara.

GitOrigin-RevId: e3566e5029af25b0fc4b1071a49e49ae20aa5df6
This commit is contained in:
MediaPipe Team
2019-12-02 17:54:10 -08:00
committed by jqtang
parent 446d7cf6b6
commit 137867d088
74 changed files with 909 additions and 504 deletions
+4 -2
View File
@@ -158,9 +158,11 @@ void Scheduler::HandleIdle() {
if (!active_sources_.empty() || throttled_graph_input_stream_count_ > 0) {
VLOG(2) << "HandleIdle: unthrottling";
state_mutex_.Unlock();
graph_->UnthrottleSources();
bool did_unthrottle = graph_->UnthrottleSources();
state_mutex_.Lock();
continue;
if (did_unthrottle) {
continue;
}
}
// Nothing left to do.