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

Function lock

crates/jit-debug/src/gdb_jit_int.rs:56–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 pub struct LockGuard<'a>(MutexGuard<'a, ()>);
55
56 pub fn lock() -> LockGuard<'static> {
57 LockGuard(GDB_REGISTRATION.lock().unwrap())
58 }
59}
60
61/// For no_std there's no access to synchronization primitives so a primitive

Callers 3

register_gdb_jit_imageFunction · 0.85
unregister_gdb_jit_imageFunction · 0.85

Calls 3

LockGuardClass · 0.70
unwrapMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected