examples: custom-entrypoint: demonstrate freeing stack space
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2eac60caf1
commit
8b8489b3e2
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ pub fn main() !void {
|
|||
// Execute systems until a frame has been finished.
|
||||
try mach.mods.dispatchUntil(stack_space, .mach_core, .frame_finished);
|
||||
}
|
||||
allocator.free(stack_space);
|
||||
} else {
|
||||
// On platforms where you cannot control the mach.Core main loop, the .mach_core.start
|
||||
// system your app schedules will block forever and the function call below will NEVER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue