MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / shared

Method shared

crates/wasmtime/src/runtime/types.rs:3318–3321  ·  view source on GitHub ↗

Set the sharedness for the memory type being built. The default is `false`, aka unshared. Note that shared memories are part of [the threads proposal](https://github.com/WebAssembly/threads) for WebAssembly which is not fully standardized yet.

(&mut self, shared: bool)

Source from the content-addressed store, hash-verified

3316 /// proposal](https://github.com/WebAssembly/threads) for WebAssembly which
3317 /// is not fully standardized yet.
3318 pub fn shared(&mut self, shared: bool) -> &mut Self {
3319 self.ty.shared = shared;
3320 self
3321 }
3322
3323 /// Set the log base 2 of the page size, in bytes, for the memory type being
3324 /// built.

Callers 8

wasmtime_memorytype_newFunction · 0.45
TESTFunction · 0.45
shared_memory_newFunction · 0.45
shared_memory_tyFunction · 0.45
shared_memory_sizeFunction · 0.45
shared_memory_growFunction · 0.45
shared_memory_data_sizeFunction · 0.45

Calls 4

unwrapMethod · 0.45
buildMethod · 0.45
maxMethod · 0.45
minMethod · 0.45

Tested by 6

TESTFunction · 0.36
shared_memory_newFunction · 0.36
shared_memory_tyFunction · 0.36
shared_memory_sizeFunction · 0.36
shared_memory_growFunction · 0.36
shared_memory_data_sizeFunction · 0.36