nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
stream.hpp File Reference

nros::Stream<T> — multi-shot message receiver. More...

#include <cstdint>
#include <cstddef>
#include "nros/result.hpp"
Include dependency graph for stream.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nros::Stream< T >
 

Namespaces

namespace  nros
 

Typedefs

typedef int nros_cpp_ret_t
 

Functions

nros_cpp_ret_t nros_cpp_spin_once (void *handle, int32_t timeout_ms)
 
uint64_t nros_cpp_time_ns (void)
 

Detailed Description

nros::Stream<T> — multi-shot message receiver.

Typedef Documentation

◆ nros_cpp_ret_t

typedef int nros_cpp_ret_t

Function Documentation

◆ nros_cpp_spin_once()

nros_cpp_ret_t nros_cpp_spin_once ( void *  handle,
int32_t  timeout_ms 
)

◆ nros_cpp_time_ns()

uint64_t nros_cpp_time_ns ( void  )

Monotonic time in nanoseconds. Stream::wait_next() budgets its spin loop by wall-clock, not iteration count (Phase 118.C — same fix Future::wait() got in Phase 89.2; Stream was missed).