oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
ove::CooperativeThreadEntry Concept Reference

Stateless callable invocable as void(stop_token). More...

#include <thread.hpp>

Concept definition

template<typename F>
concept ove::CooperativeThreadEntry = std::convertible_to<F, void (*)(stop_token)>
Stateless callable invocable as void(stop_token).
Definition thread.hpp:204

Detailed Description

Stateless callable invocable as void(stop_token).

The (captureless) cooperative Thread constructor accepts function pointers and stateless lambdas matching this concept. Capturing lambdas are matched by CapturingCooperativeEntry instead (heap-mode only).