Sha256: 6fd16bf83e977de8946397c162a9e7d7436cb26cd90e04e9c0618b9095877055
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
//! Implementation of Wasmtime's system primitives for Windows. use std::cell::Cell; #[cfg(feature = "signals-based-traps")] pub mod mmap; pub mod traphandlers; pub mod vm; #[cfg(target_pointer_width = "32")] pub mod unwind32; #[cfg(target_pointer_width = "32")] pub use unwind32 as unwind; #[cfg(target_pointer_width = "64")] pub mod unwind64; #[cfg(target_pointer_width = "64")] pub use unwind64 as unwind; std::thread_local!(static TLS: Cell<*mut u8> = const { Cell::new(std::ptr::null_mut()) }); #[inline] pub fn tls_get() -> *mut u8 { TLS.with(|p| p.get()) } #[inline] pub fn tls_set(ptr: *mut u8) { TLS.with(|p| p.set(ptr)); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wasmtime-29.0.0 | ./ext/cargo-vendor/wasmtime-29.0.0/src/runtime/vm/sys/windows/mod.rs |