NVIDIA Holoscan SDK v3.0.0

Template Class ThreadSafeQueue

template<typename T>
class ThreadSafeQueue

A thread safe queue

Template Parameters

T – type of object contained in the queue

Public Functions

inline void push(T &value)

Add an object to the queue

Parameters

value – object to add

inline std::optional<T> pop()

Get an object of the queue

Returns

std::optional<T> object that had been unqueued or null if queue was empty

Previous Class Params
Next Class TorchInfer
© Copyright 2022-2025, NVIDIA. Last updated on Mar 12, 2025.