Skip to navigation

holoscan::authoring::callback_handle_type

Beta
View as Markdown
HOLOSCAN_CORE_EXPORT const ConstructorHandleType<const ConstructorCallback> & holoscan::authoring::callback_handle_type() noexcept

Return the built-in handle type for void() callbacks, named holoscan.VoidCallback.

Rows declare callback inputs, such as a device’s start and stop actions, with this type and read them with OperatorConstructionInputs::callback. C++ callers supply a std::shared_ptr<const ConstructorCallback>. Holoscan’s Python binding adapts any Python callable passed for such an input; that callback acquires the GIL when it runs and fails with CONSTRUCTOR_CALLBACK_INTERPRETER_UNAVAILABLE once the interpreter has shut down.