oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Classes | Namespaces | Concepts | Functions | Variables
types.hpp File Reference

Common type definitions and concepts for the C++ wrapper layer. More...

#include <ove/ove.h>
#include <cstdint>
#include <cstddef>
#include <chrono>
#include <concepts>
#include <type_traits>
#include <utility>
Include dependency graph for types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ove::steady_clock
 Steady-clock wrapping the substrate's monotonic time source. More...
 

Namespaces

namespace  ove
 Top-level namespace for all oveRTOS C++ abstractions.
 

Concepts

concept  ove::ThreadEntry
 Concept satisfied by any callable convertible to void(*)(void*).
 

Functions

template<typename Rep , typename Period >
constexpr uint64_t ove::to_timeout_ns (std::chrono::duration< Rep, Period > d) noexcept
 Convert a chrono duration to uint64_t nanoseconds for the C API.
 
constexpr uint64_t ove::to_deadline_ns (steady_clock::time_point tp) noexcept
 Convert an ove::steady_clock::time_point to uint64_t nanoseconds for the substrate's _until APIs.
 

Variables

constexpr std::chrono::nanoseconds ove::wait_forever = std::chrono::nanoseconds::max()
 Sentinel duration meaning "block indefinitely".
 

Detailed Description

Common type definitions and concepts for the C++ wrapper layer.