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

Method shared_memory

crates/wasmtime/src/config.rs:3210–3213  ·  view source on GitHub ↗

Enable or disable the ability to create a [`SharedMemory`](crate::SharedMemory). The WebAssembly threads proposal, configured by [`Config::wasm_threads`] is on-by-default but there are enough deficiencies in Wasmtime's implementation and API integration that creation of a shared memory is disabled by default. This configuration knob can be used to enable this. When enabling this method be aware

(&mut self, enable: bool)

Source from the content-addressed store, hash-verified

3208 ///
3209 /// This option is `false` by default.
3210 pub fn shared_memory(&mut self, enable: bool) -> &mut Self {
3211 self.shared_memory = enable;
3212 self
3213 }
3214
3215 /// Specifies whether support for concurrent execution of WebAssembly is
3216 /// supported within this store.

Callers 11

executeMethod · 0.45
run_wastFunction · 0.45
engineFunction · 0.45
shared_memory_basicsFunction · 0.45
shared_memory_engineFunction · 0.45

Calls

no outgoing calls

Tested by 3

shared_memory_basicsFunction · 0.36
shared_memory_engineFunction · 0.36