|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
Capturing callable invocable as void(stop_token).
More...
#include <thread.hpp>
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.