|
int | zth::context_init () noexcept |
| One-time context mechanism initialization. More...
|
|
void | zth::context_deinit () noexcept |
| Final cleanup. More...
|
|
int | zth::context_create (Context *&context, ContextAttr const &attr) noexcept |
| Create a context. More...
|
|
void | zth::context_switch (Context *from, Context *to) noexcept |
| Perform context switch. More...
|
|
void | zth::context_destroy (Context *context) noexcept |
| Destroy and cleanup a context. More...
|
|
size_t | zth::context_stack_usage (Context *context) noexcept |
| Return the high water mark of the stack of the given context. 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...
|
|
template<typename F > |
void * | zth::impl::stack_switch_fwd (void *f) noexcept |
|
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...
|
|