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

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

#include <thread.hpp>

Concept definition

template<typename F>
std::invocable<F &, stop_token> && !std::convertible_to<F, void (*)(stop_token)>
Capturing callable invocable as void(stop_token).
Definition thread.hpp:222

Detailed Description

Capturing callable invocable as void(stop_token).

Picks up lambdas with captures, std::function-like wrappers, functors with member state — anything that satisfies std::invocable<F&, stop_token> but does NOT decay to a plain function pointer (captureless lambdas / void(*)(stop_token) are matched by CooperativeThreadEntry).

Heap-mode only: the matching Thread constructor heap-allocates a box for the closure and lets the trampoline reclaim it on entry exit. Not defined under CONFIG_OVE_ZERO_HEAP.