Project import generated by Copybara.

GitOrigin-RevId: d8caa66de45839696f5bd0786ad3bfbcb9cff632
This commit is contained in:
MediaPipe Team
2020-12-09 22:43:33 -05:00
committed by chuoling
parent f15da632de
commit 2b58cceec9
750 changed files with 22901 additions and 9478 deletions
+5 -6
View File
@@ -48,7 +48,7 @@ class Executor {
// A registered Executor subclass must implement the static factory method
// Create. The Executor subclass cannot be registered without it.
//
// static ::mediapipe::StatusOr<Executor*> Create(
// static mediapipe::StatusOr<Executor*> Create(
// const MediaPipeOptions& extendable_options);
//
// Create validates extendable_options, then calls the constructor, and
@@ -65,14 +65,13 @@ class Executor {
virtual void Schedule(std::function<void()> task) = 0;
};
using ExecutorRegistry = GlobalFactoryRegistry<::mediapipe::StatusOr<Executor*>,
using ExecutorRegistry = GlobalFactoryRegistry<mediapipe::StatusOr<Executor*>,
const MediaPipeOptions&>;
// Macro for registering the executor.
#define REGISTER_EXECUTOR(name) \
REGISTER_FACTORY_FUNCTION_QUALIFIED(::mediapipe::ExecutorRegistry, \
executor_registration, name, \
name::Create)
#define REGISTER_EXECUTOR(name) \
REGISTER_FACTORY_FUNCTION_QUALIFIED( \
mediapipe::ExecutorRegistry, executor_registration, name, name::Create)
} // namespace mediapipe