NVIDIA Holoscan SDK v2.8.0
Holoscan v2.8.0

Class CPUThread

Base Type

class CPUThread : public holoscan::gxf::GXFResource

CPU thread class.

A CPUThread resource can be added to an operator to control whether it will be pinned to a specific thread in a ThreadPool (as used by MultiThreadScheduler). See the ThreadPool API documentation for a more detailed description of its usage.

Public Functions

template<typename ArgT, typename ...ArgsT, typename = std::enable_if_t<!std::is_base_of_v<::holoscan::Resource, std::decay_t<ArgT>> && (std::is_same_v<::holoscan::Arg, std::decay_t<ArgT>> || std::is_same_v<::holoscan::ArgList, std::decay_t<ArgT>>)>>
inline explicit CPUThread(ArgT &&arg, ArgsT&&... args)
inline explicit CPUThread(bool pin_entity = true)
CPUThread(const std::string &name, nvidia::gxf::CPUThread *component)
inline virtual const char *gxf_typename() const override

The underlying GXF component’s name.

virtual void setup(ComponentSpec &spec) override

Define the resource specification.

Parameters

spec – The reference to the component specification.

Previous Class CPUResourceMonitor
Next Class CsvDataExporter
© Copyright 2022-2024, NVIDIA. Last updated on Jan 2, 2025.