Change the stack size of a fiber returned by async.
More...
#include <async.h>
Change the stack size of a fiber returned by async.
This is a manipulator that calls zth::Fiber::setStackSize(). Example:
void foo() { ... }
return 0;
}
Change the stack size of a fiber returned by async.
int main_fiber(int argc, char **argv)
#define zth_fiber(...)
Prepare every given function to become a fiber by async.
#define async
Run a function as a new fiber.
Definition at line 145 of file async.h.
◆ setStackSize()
constexpr zth::setStackSize::setStackSize |
( |
size_t |
stack | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ ~setStackSize()
virtual zth::setStackSize::~setStackSize |
( |
| ) |
|
|
overridevirtualdefault |
◆ apply()
virtual void zth::setStackSize::apply |
( |
Fiber & |
fiber | ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: