[][src]Module rask_wasm::mem

This module abstracts some of the raw memory interaction and calculates the offsets of shared memory constructs.

Constants

GRAPHICS_STACK_SIZE
STACK_ALIGN
WORKER_STACK_SIZE

Functions

align_up

Align given memory address up to the alignment of T.

alloc_stack
alloc_tls
atomic_read_i32

Safety

atomic_read_u8

Safety

atomic_read_u32

Safety

atomic_write_u8

Safety

atomic_write_u32

Safety

get_tls_size
set_tls_size

Set the size of the global thread local storage.

wait_until_wake_up_at

Safety