Zth (libzth)
|
Functions | |
template<typename R , typename... A, typename... A_> | |
std::enable_if<!std::is_void< R >::value, R >::type | zth::stack_switch (void *stack, size_t size, R(*f)(A...) noexcept, A_ &&... a) noexcept |
Call the function f using the new stack pointer. More... | |
template<typename... A, typename... A_> | |
void | zth::stack_switch (void *stack, size_t size, void(*f)(A...) noexcept, A_ &&... a) noexcept |
Call the function f using the new stack pointer. More... | |
void | zth::stack_watermark_init (void *stack, size_t size) noexcept |
Initialize the memory region for stack high water marking. More... | |
size_t | zth::stack_watermark_size (void *stack) noexcept |
Return the size of the given stack region. More... | |
size_t | zth::stack_watermark_maxused (void *stack) noexcept |
Return the high water mark of the stack. More... | |
size_t | zth::stack_watermark_remaining (void *stack) noexcept |
Return the remaining stack size that was never touched. More... | |
|
inlinenoexcept |
Call the function f
using the new stack pointer.
Type-safe C++ wrapper for zth_stack_switch().
|
inlinenoexcept |
Call the function f
using the new stack pointer.
Type-safe C++ wrapper for zth_stack_switch().
|
noexcept |
Initialize the memory region for stack high water marking.
Definition at line 245 of file context.cpp.
|
noexcept |
Return the high water mark of the stack.
This does not take any zth::stack_switch() calls into account.
stack | the same value as supplied to zth::stack_watermark_init |
Definition at line 283 of file context.cpp.
|
noexcept |
Return the remaining stack size that was never touched.
This does not take any zth::stack_switch() calls into account.
stack | the same value as supplied to zth::stack_watermark_init |
Definition at line 315 of file context.cpp.
|
noexcept |
Return the size of the given stack region.
This does not take any zth::stack_switch() calls into account.
stack | the same value as supplied to zth::stack_watermark_init |
Definition at line 267 of file context.cpp.