Searched refs:OnceLock (Results 1 – 10 of 10) sorted by relevance
| /wasmtime-44.0.1/crates/wasmtime/src/ |
| H A D | sync_std.rs | 14 pub struct OnceLock<T>(OnceCell<T>); struct 16 impl<T> OnceLock<T> { impl 18 pub const fn new() -> OnceLock<T> { in new() 19 OnceLock(OnceCell::new()) in new() 33 impl<T> Default for OnceLock<T> { implementation 34 fn default() -> OnceLock<T> { in default() 35 OnceLock::new() in default()
|
| H A D | sync_nostd.rs | 27 pub struct OnceLock<T> { struct 40 impl<T> OnceLock<T> { implementation 41 pub const fn new() -> OnceLock<T> { in new() 42 OnceLock { in new() 102 impl<T> Drop for OnceLock<T> { implementation 111 impl<T> Default for OnceLock<T> { implementation 112 fn default() -> OnceLock<T> { in default() 113 OnceLock::new() in default() 408 let lock = OnceLock::new(); in smoke_once_lock() 415 let lock = OnceLock::new(); in smoke_once_lock() [all …]
|
| H A D | engine.rs | 69 compatible_with_native_host: crate::sync::OnceLock<Result<(), String>>,
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/mpk/ |
| H A D | enabled.rs | 5 use std::sync::OnceLock; 46 static KEYS: OnceLock<Vec<ProtectionKey>> = OnceLock::new();
|
| /wasmtime-44.0.1/fuzz/fuzz_targets/ |
| H A D | misc.rs | 5 use std::sync::OnceLock; 15 static ENABLED: OnceLock<u32> = OnceLock::new();
|
| /wasmtime-44.0.1/crates/test-programs/src/ |
| H A D | preview1.rs | 1 use std::{sync::OnceLock, time::Duration}; 4 static TESTCONFIG: OnceLock<TestConfig> = OnceLock::new(); in config()
|
| /wasmtime-44.0.1/crates/wasi/src/cli/ |
| H A D | worker_thread_stdin.rs | 31 use std::sync::{Condvar, Mutex, OnceLock}; 90 static STDIN: OnceLock<GlobalStdin> = OnceLock::new(); in get()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/module/ |
| H A D | registry.rs | 7 use crate::sync::{OnceLock, RwLock}; 332 static GLOBAL_CODE: OnceLock<RwLock<GlobalRegistry>> = OnceLock::new(); in global_code()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | module.rs | 5 use crate::sync::OnceLock; 156 memory_images: OnceLock<Option<ModuleMemoryImages>>, 553 memory_images: OnceLock::new(), in from_parts_raw()
|
| /wasmtime-44.0.1/crates/fuzzing/src/oracles/ |
| H A D | component_async.rs | 12 use std::sync::{Arc, OnceLock, Weak}; 23 static STATE: OnceLock<(Engine, FuzzAsyncPre<Data>)> = OnceLock::new();
|