Module corosensei::stack
source · Expand description
Details about stacks used by coroutines.
In most cases, just using the default stack implementation is sufficient.
However it is possible to use a custom Stack
implementation if more
control is desired.
Modules
- Optional support for registering stacks with Valgrind.
Structs
- Default stack implementation which uses
VirtualAlloc
. - Fields in the Thread Environment Block (TEB) which must be updated when switching to a different stack. These are the same fields that are updated by the
SwitchToFiber
function in the Windows API.
Constants
- Minimum size of a stack, excluding guard pages.
- Required stack alignment at function call boundaries.
Traits
- A trait for objects that hold ownership of a stack.
Type Definitions
- Type to represent a stack address.