Project import generated by Copybara.

GitOrigin-RevId: d073f8e21be2fcc0e503cb97c6695078b6b75310
This commit is contained in:
MediaPipe Team
2021-02-27 03:30:05 -05:00
committed by chuoling
parent 39309bedba
commit 350fbb2100
755 changed files with 16391 additions and 11075 deletions
+6 -6
View File
@@ -56,8 +56,8 @@ class Scheduler {
// Sets the executor that will run the nodes assigned to the executor
// named |name|. Must be called before the scheduler is started.
mediapipe::Status SetNonDefaultExecutor(const std::string& name,
Executor* executor);
absl::Status SetNonDefaultExecutor(const std::string& name,
Executor* executor);
// Resets the data members at the beginning of each graph run.
void Reset();
@@ -70,13 +70,13 @@ class Scheduler {
// have been closed, and no more calculators can be run).
// This function can be called only after Start().
// Runs application thread tasks while waiting.
mediapipe::Status WaitUntilDone() ABSL_LOCKS_EXCLUDED(state_mutex_);
absl::Status WaitUntilDone() ABSL_LOCKS_EXCLUDED(state_mutex_);
// Wait until the running graph is in the idle mode, which is when nothing can
// be scheduled and nothing is running in the worker threads. This function
// can be called only after Start().
// Runs application thread tasks while waiting.
mediapipe::Status WaitUntilIdle() ABSL_LOCKS_EXCLUDED(state_mutex_);
absl::Status WaitUntilIdle() ABSL_LOCKS_EXCLUDED(state_mutex_);
// Wait until any graph input stream has been unthrottled.
// This is meant to be used by CalculatorGraph::AddPacketToInputStream, which
@@ -93,8 +93,8 @@ class Scheduler {
// this function returns immediately if an observed packet has already been
// emitted since the previous call. This relies on the fact that the calls are
// in sequence. Runs application thread tasks while waiting.
// Returns mediapipe::OutOfRangeError if the graph terminated.
mediapipe::Status WaitForObservedOutput() ABSL_LOCKS_EXCLUDED(state_mutex_);
// Returns absl::OutOfRangeError if the graph terminated.
absl::Status WaitForObservedOutput() ABSL_LOCKS_EXCLUDED(state_mutex_);
// Callback that is invoked by a node when it wants to be scheduled.
// If the node is throttled, the call is ignored.